- Home /
Question by
jdams · Aug 12, 2012 at 05:05 AM ·
bugtrailrenderer
How can I change time on TrailRenderer dynamically?
I have a TrailRenderer and I want the time variable to be random. I'm using Random.Range to generate a float but when I try to assign it to TrailRenderer.time I get an error stating that 'time' is not a member of (UnityEngine.TrailRenderer).
Scripting reference shows a variable time. Why can't I change it dynamically(aka in code)? Is it conflicting with the Time class?
Script Ref: link text
Comment
That should work... Can you show a sample of your code?