- Home /
Trail renderer problem
I have find a script from unify that can make some effect like tron trail. But why it is only can work on the character movement. when I put on the weapon. It cannot make the sword slash effect. Can someone help?
below is the link I find the script http://www.unifycommunity.com/wiki/index.php?title=TimeBasedTrailRenderer
please help
Answer by AngryOldMan · Mar 22, 2011 at 12:08 PM
you need to turn on the trail render when the character starts his sword swipe attack then end it when it stops. You could have a send message feature in your character script which calls on the trail render script or you could adapt the trail render script to include a function for your sword movements. something like
if (SwordSwipe == true)
{
ParticleEmitter.emit = true;
}
else
{
ParticleEmitter.emit = false;
}
Really though it require you to understand scripting as apposed to just pulling scripts off the internet, usually scripts off the internet need to be adapted to get the effect you want, hence why you need the understanding.
Your answer
![](https://koobas.hobune.stream/wayback/20220613114134im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
play animation on button press 7 Answers
Render to texture, use same texture as input in next render call 0 Answers
Drawing 2d line from a point on an object! 1 Answer
Sword Swinging 2 Answers
animated sword + script 1 Answer