2d animation over a 3d character

Hi,

I have a 3D character that is walking around just fine in a mostly 2D game. I would like to have a 2D animation play over the top of him when he dies. I can’t seem to get the 2D animation to show up.

My animator controller has a state transition that goes to a new state that plays the 2d animation from a sprite sheet. The little bar on the state machine progresses as if it’s properly playing, but you can’t see any of the 2d animation on the screen.

I’ve tried attaching a Sprite Renderer to my 3D character and cranking the sorting order. Nothing.

I have lots of other 2D animations working on 2D characters. Any ideas?

Here’s how I solved it: Since the 2D animation played when the player died, and the player model disappears in the carnage, I instantiated a 2D object at the death scene that played the 2D death animation. Immediately after I SetTrigger, I destroy the player. The 2D animation plays unobstructed.

Maybe that will help someone else someday…