Sprite rect transform
Posted: Thu Apr 19, 2018 10:17 am
Hey there! me once again
I was wondering, is there a way to access a sprite's rect transform from a node or something? Its because we're using a UI shader to project a second texture on each sprite (color dodge blend mode for shining effects). And it works perfectly until you pack the UI sprites on atlases, then the second texture ends up being projected on top of the whole atlas, not each individual sprite.
Any workaround?
thanks!
I was wondering, is there a way to access a sprite's rect transform from a node or something? Its because we're using a UI shader to project a second texture on each sprite (color dodge blend mode for shining effects). And it works perfectly until you pack the UI sprites on atlases, then the second texture ends up being projected on top of the whole atlas, not each individual sprite.
Any workaround?
thanks!