Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Can't change sprite of sprite renderer through script or manually in unity

Discussion in 'Animation' started by Ultimate_potato3000, Dec 2, 2023.

  1. Ultimate_potato3000

    Ultimate_potato3000

    Joined:
    Aug 15, 2023
    Posts:
    10
    So I'm making a 2d platformer game where at one point I have to change the sprite of the player and my code doesn't matter for this because I've stared at it for over an hour and there's nothing changing the sprite every frame or something else like that and I suspect it could be something wrong with the animator but manually if I try to change its sprite it doesn't work and if I change it before I play test it keeps the sprite I set it to and this is the player's animator keep in mind that the idle state has no animation attached to it