How it works...

Unity can animate the public Sprite field in the Sprite Renderer component of a game object. This is exactly what we did in this recipe. We are changing the sprites each frame to create a frame by frame animation. We have changed the Samples number to lower the frame rate of the animation. That allows us to use less frames per second. In standard 2D frame by frame animation, we use 12 or 24 frames per second, and Unity's default Samples number is 60.

In some cases, you can use even lower Samples values: try experimenting with 8 frames per second.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.159.82