- Home /
How to modify Unity 4.3 Sprite vertices
Hi all, i need to modify sprite vertices (via script) in order to simulate highness given a terrain and have no clue on how to do that.
Example: i have a square and need to simulate a rising z. In a mesh i would take the top verteces and move them up along the Y. The texture would eaily stretch following the vertices.
I can use the Sprite, the SpriteRenderer and the relative GameObject (or anything related i don't know about :) )
Answer by JustCallMeJ · Aug 26, 2019 at 08:19 PM
Not sure if this was available back in 2013 but I'm posting it here for reference as this question is currently shown as first result when googling for modifying sprite vertices in Unity.
https://docs.unity3d.com/ScriptReference/Sprite-vertices.html
no I guess it didn't exist in 2013. :) Thanks for the update, even if I gave up long ago ;)