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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -