Animate Collectable in Unity.

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.

Then we have to select the object and go to the animation window, press the record button and and change the rotation of the object in the timeline. To finish the animation you have to select the record button again.

And that’s it we have a simple rotation animation for our collectables.

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

[LeetCode]#1122. Relative Sort Array

Staff interview: Hacking into the APO program

Promising Hosting for GSA Search Engine Ranker

Creating a Multicloud Setup of Kubernetes using Ansible Roles

Got Selected as Android Developer at BBC News

Drupal 8 Views tutorial for developers. Part III — Sorts & Filters

Brief of OpenCV — Python

Lifetime Free Google Server

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rusben Guzman

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.

More from Medium

Creating a Ladder System in Unity — Part 1: Climb Ladder

Instantiating & Destroying Game Objects in Unity

Day 118: Camera Follow System in Unity

How to Play Sound Effects in Unity