Transform versus Frame Animation

Animation in Unity consists mostly of transform animations and frame (sprite) animations. These two styles basically boil down to 3D and 2D animation respectively, but let’s get a better idea of when and why to use one or the other, or even possibly both.

Transform Animation

Transform animation refers to manipulating an object in 3D space over time. This means we either move, rotate, or scale the volume of the mesh to affect its position, orientation, or size. A good example is a bouncing ball animation in 3D. In order to make the ball (sphere) appear to bounce across a floor realistically, you have to affect the transform of the object.

All GameObjects in Unity have a Transform Component attached to them. By ...

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.