Sprite disappearing while animation is running

Hey last night i made a bunch of animations for a character walking but i closed it and openend it this morning. All of the animations are no longer working, here is a youtube link of what happens:
https://www.youtube.com/watch?v=xXTDKAjGIt0

Do they play properly when you run the game? If not, try rebuilding the animation and see if that works.


I have remade the animations 3 times and it still does the same thing

Can you share an image of the spriterenderer in the inspector on the player? And do you have any code controlling your animator you can share? Im just curious as to how you set everything up

This?

8355795--1099743--upload_2022-8-11_20-9-11.png

        //animation
        if (running == false)
        {
            animator.SetFloat("Horizontal", movement.x);
            animator.SetFloat("Vertical", movement.y);
            animator.SetFloat("Speed", movement.sqrMagnitude);
        }
        else
        {
            animator.SetFloat("SprintHorizontal", movement.x);
            animator.SetFloat("SprintVertical", movement.y);
            animator.SetFloat("SprintSpeed", movement.sqrMagnitude);
        }

i dont understand why it doesnt work because if i reopen it it selects different frames to not work and then makes other ones work

i think is the sorting layer try make new sorting layer for the player

1 Like