- Home /
Saving a Trailrenderer?
Hey everyone! Is it possible to save a trailrenderer's trail in player prefs? I need it to carry over between sessions. Also, the data would need to be able to be deleted. Also, could you start stop emission on the trailrenderer so that the player could decide when to use it?
One way would be to store a series of waypoints, usually where the object changes direction, similar to how a 'ghost' car works in racing games : http://answers.unity3d.com/questions/327275/how-do-you-record-the-movement-of-an-object-and-th.html
For the second question, simply use renderer.enabled : http://docs.unity3d.com/Documentation/ScriptReference/Renderer-enabled.html
http://docs.unity3d.com/Documentation/ScriptReference/TrailRenderer.html
Your answer
Follow this Question
Related Questions
Cracks in Trail Renderer? 0 Answers
Trying to use trail renderer to create a flame trail 1 Answer
How to make trail renderer working with the URP ? 0 Answers
Raycast trail renderer? 3 Answers