Search Unity

How can i get runtime vertices in 2d animated sprite?

Discussion in '2D Experimental Preview' started by Yeung, Jul 15, 2019.

  1. Yeung

    Yeung

    Joined:
    May 31, 2013
    Posts:
    1
    Hey guys,
    I have a sprite that was animated by adding bones and geometry with 2D animation version 2.0.0. The sprite is animating great and now i want to add collider to my sprite. But i find that the sprite.vertices are not updated during runtime, which are the initial vertices of the sprite.

    How can i get the vertices positions during runtime?

    Thank you for your help!
     
  2. ChuanXin

    ChuanXin

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    283
    It is not possible with the version of 2D Animation you are using unfortunately.

    We will expose this in a future version.