Objective: create a spin animation for the collectable prefab.

First step is to add an animator component to the collectable in the scene.

We have to create a new animator controller and a new animation, the animator controller has to be assigned in the inspector and the animation has to be added to the animator controller.

--

--

Objective: download an asset and create a collectable for your game.

For this example I downloaded a 3d battery model for my game and added it to the scene.

With the model in the scene we have to add a collider component to detect the player, in this case…

--

--

Rusben Guzman

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.