Hey,
@gamingislove a year or two ago you set up a demo for me, including the player prefab. I'm having trouble creating new animation states for the player prefab, since any new clips that I create will not play, and when I check on them, it always states that the sprites are missing:
I've double checked and the sprites are not missing. When I set the clip up, the sprites all seem to be in order. But upon running the game, the animation will not work, and when I return to the animation clip, it states that the sprites are missing.
I've noticed that the setup includes the player prefab's sprite being a child object, and I'm wondering if this is causing the issue? Here is the player prefab setup:
Any ideas on what could be causing this problem? Any advice would be appreciated!
Agender, curry fan, Top 10 lister, indie dev, gym hitter, musician, et al.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
It lists the new clip (which eventually doesn't work) as Riker_Field: Sprite, since the animator is on the parent object of Riker_Field. However, the rest of the clips show up as Sprite: Sprite, under the child object of Riker_Field
Could this possibly be what's causing the issue? For whatever reason, no matter what I do, when I try keeping the Sprite child object selected, it still creates the clip as Riker_Field: Sprite instead of Sprite: Sprite.
I want to say I should just stick the sprite renderer and animator together onto the parent prefab, but I'm not sure how much that would interfere with any preexisting schematics that might have used the child object of Sprite.
The sprite remains stuck and doesn't rotate properly.
I wouldn't think I need to change anything in the blend tree or animator to have it work on the parent prefab, would I?
Generally, changing sprites on child objects via animations shouldn't be a problem. The setup with sprites on child object (not sure if I also set up the animator on the child or on the root in your project) was used to have the parent/root object's rotation be responsible for the movement direction and being able to forward that information to the animator controller, i.e. to play the correct directional animations.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I'll send you a copy of the project so you can take a look at it.