I’m making a RPG and player can change their weapon. But the problem is how to set display order of different parts during animation like in the picture below.
This is my first project and my English is bad too. Hope you can understand.
SpriteRenderer has sorting order option,
The easiest way to do this would be to set up an Animation Event at the keyframe where the weapon object needs to be switched to a lower sorting order. There is no way to access the SpriteRenderer’s order in layer property from the Animation with itself, so there is going to have to be a bit of code to make this happen.
Cheers,
TrickyHandz
