- Home /
Question by
adrianodigiovanni · Jul 10, 2017 at 11:41 AM ·
animationscripting problemsprite
Change sprite vs sprite animation
I have a GameObject with a sprite renderer attached to it. The GameObject represents a cake. The cake has one slice out of 11 at first. I want to show more slices according to game rules. My current approach is to change the sprite to the renderers in order to show 2, 3, ... slices. I'd like to know if it's best to create an animation instead and control it programmatically in order to achieve the same result.
Comment
The advantage of using an animation is that you would only have one image containing all the sprites as a spritesheet, ins$$anonymous$$d of having 11 seperate image files in your project hierarchy.
Your answer
