- Home /
SpriteRenderer animation generics?
I've been digging into the new SpriteRenderer in Unity 4.3 and have encountered a problem I cannot solve.
I have 5 different characters each with a unique sprite sheet that share the same animation file. This works exactly as I need, with each of the 5 characters using the animation with their own sprite sheet.
The problem occurs when I need to animated a blink by swapping one of the sprites. When I keyframe a swap in the animation editor, it uses a absolute sprite selection. In other words, it can only swap to one unique sprite from all of the sprite sheets, I cannot select the generic name, and have each character use the blink sprite that is on it's own sprite sheet.
Is there another way to accomplish this so that it only uses sprites already associated with the current gameobject SpriteRenderer?
I sort of half solved this by simply assigning the sprite to each character, then enabling the disabling the SpriteRenderer ins$$anonymous$$d of keyfra$$anonymous$$g the sprite