Archive 17/01/2023.

Setting colour for all 4 verticies in StaticSprite2D

BananaIguana

I’m using the 2D features of Urho3D and I have a question about StaticSprite2D.

I would like to set the colour of each vertex which makes up the sprite. I understand StaticSprite2D only has one method which sets the colour for all 4 verticies. To achieve this, is it best to subclass StaticSprite2D and modify it to deal with this one-off case or is there perhaps a better approach?

Bananaft

Custom geometry might be a better approach.