Unity Fundamental Series

Unity Fundamental Series is a collection of articles and videos that show basic concepts of the Unity Engine

Difference between Update and FixedUpdate in Unity

Introduction In this article we will analyze the execution of a simple program to understand what are the differences between Update and FixedUpdate in Unity. To see these differences I set up a simple Unity scene with two cubes and some programming scripts, you can download the Unity package in this article. Downloadable Unity Package …

Difference between Update and FixedUpdate in Unity Read More »

How does OnTriggerExit works in Unity? Detecting objects leaving an area

Introduction In this article we are going to see how the OnTriggerExit method works in Unity. This function will allow us to detect when the Collider of a GameObject that was previously inside a Trigger, is no longer in contact with it. OnTriggerEnter and OnTriggerExit are very similar methods but it changes the moment in …

How does OnTriggerExit works in Unity? Detecting objects leaving an area Read More »

How does OnTriggerEnter works in Unity? Detecting objects entering an area

Introduction In this article we are going to see how the OnTriggerEnter method works in Unity. This function will allow us to detect when the Collider of a GameObject has come into contact with another Collider. OnTriggerEnter and OnTriggerExit are very similar methods but it changes the moment in which the execution of these methods …

How does OnTriggerEnter works in Unity? Detecting objects entering an area Read More »

#10 Change Scenes at runtime in Unity. LoadScene Method

Introduction This is the last exercise in Unity’s Fundamental Series, in this article we’re going to see how to change the scene in Unity at runtime. Understanding how to change the scene is important because it allows us to separate the content of our game into parts, for example the main menu on one side …

#10 Change Scenes at runtime in Unity. LoadScene Method Read More »

#9 Rotate objects in Unity. Rotate method of the Transform class.

Introduction In this article we’re going to see how to rotate objects in Unity. There are several ways to achieve this, in this case we will use the Rotate method of the Transform class, this will directly modify the rotation parameters that are observed at the top of the inspector with the GameObject selected. Go …

#9 Rotate objects in Unity. Rotate method of the Transform class. Read More »