c# - Unity: Why isn't TrailRenderer.GetPosition() working? "'TrailRenderer' does not contain a definition for 'GetPosition'" -
public gameobject player; private trailrenderer tr; private vector3 v; void start () { tr = player.getcomponent<trailrenderer>(); } void update () { v = tr.getposition(0); }
whenever try use getposition() method trail renderer, error: "'trailrenderer' not contain definition 'getposition' , no extension method 'getposition' accepting first argument of type 'trailrenderer' found".
anyone know what's going on?
the trailrenderer.getposition
function added in unity 5.6 using unity 5.5. why cannot use it. need update unity version in order use function.
Comments
Post a Comment