I’m trying to make a background animation, I have the asset done, but it’s 256 by 128 and I need the pixels to be the same size. I have the background so it has 2 frames and it will switch between them. Any suggestions on how I could fix it?
1 Answer
1If I understood it right, you have two 128x128 images that are together in the same sprite, resulting in a 256x128?
If yes, left click the file inside Unity to open it in the Inspector, after that, change the Sprite Mode from Single to Multiple, then click the button “Sprite Editor”, in the window that opens, click “Slice”, select Type: Grid by Cell Count (you can choose Cell Size too) and separate them in 2 Rows, 1 Column.
If you need to manually change the sprite size, you can do it by clicking in each sprite frame in the Unity Editor and changing the size in the bottom right window.
Apply the changes and bring the new Sprite to the Scene, this will automatically create a Animator for your Image.
If you are using it for UI you will need to select the frames and add them to the Animation.