In some cases you’ll want to destroy a game object by time. For this purpose you can use a little script like this one that you can attach to any object, as soon as you fill the lifeTime value in the editor, the gameObject will destroy itself within the given time. public class destroyByTime : […]
Basics
create a new material

First make sure we’ve created a folder “Materials” just for organisation purpose : Right click on the asset window / create/Folder/ name it Materials. Then, right click /Create/Material/ then name your material
Add animator condition

When you have created at least one parameter in your animator, you can add conditions. By clicking on a transition arrow in your animator view you’ll see in the inspector window a “Conditions” Tab. Add a condition by clicking on the “+”. It will automatically fills the condition with your only parameter available, or give you […]
Add an animator parameter

In the Animator window, Under the “Parameters” tab, click on the “+” Choose the type of wanted parameter to add : Integer, Boolean, Float or Trigger. Give a name to the parameter. Animator parameters are useful for setting and changing animation states on the fly
Setting up / Adding a Tag

How to Set Up / Add Tag in Unity Select a gameObject and go in the inspector panel. Choose a pre made Tag in the “Tag” field. Or click on the “Add Tag”/ “+”/then create a new tag name. The Tags are reference words which you can assign to one or more GameObjects. They’re quite useful […]
Add a new script

Create a new script In the project directory, right-click in the directory where you want to create the script (It’s strongly advised that you make a directory called “Scripts” to get the best of it). Select “Create”, then select the desired language (c#, javascript). Then give the wanted name to your script. Just double-click […]