- Home /
Question by
CC_1759 · Oct 27, 2021 at 02:37 AM ·
transform.positiontrailrenderertrail renderer
how can i make the trail renderer not continue from the same spot after teleporting it
i am currently making a ninja star, and when you shoot it it has a trail but when you shoot it again, it the trail starts from the endpoint of the last trail. how can i fix this.
Comment
Answer by Trumped · Oct 27, 2021 at 06:32 AM
Disable it before teleporting it then enable it once it's been teleported.
If it's parented to an object try:
objectThatTeleporting.GetComponentInChildren().enable = false.
If it's not parented to a gameobjects:
GetComponent().enable = false.
Your answer
![](https://koobas.hobune.stream/wayback/20220613044646im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Trails in just one direction 1 Answer
How to Change Trail Render Position in 3D? 1 Answer
Trail renderer lag issue 1 Answer
How to get Zerg Tentacle-like effect (see example in post)? 1 Answer