{ DIFFERENCES between Update and FixedUpdate functions in Unity }
GDT Solutions
0:00 / 0:00
{ DIFFERENCES between Update and FixedUpdate functions in Unity }
2 225 просмотров · 4 года назад
GDT Solutions
3,58 тыс. подписчиков
2 225 просмотров · 4 года назад
In this experiment we are going to understand which are the differences between Update and FixedUpdate in Unity, those functions that are defined in the MonoBehaviour class and they are executed automatically in a constant loop while the game is running.
In the following link you can download the Unity Package:
https://gamedevtraum.com/en/game-and-...
MonoBehaviour's Scripting API:
https://docs.unity3d.com/ScriptRefere...
Summary of the differences between Update and FixedUpdate in Unity
1. The number of Update runs per second is variable, while the number of FixedUpdate runs per second are fixed.
2. In general you have no control over the execution of the Update loop, they will depend on the performance of each computer. FixedUpdate on the other hand runs at a fixed rate and we can modify the Time Step in Project Settings - Time, by default is 0.02 seconds (20 milliseconds).
3. Both functions are used to make changes in time, from the video we can see that the Update function is gonna be executed more frequently as FixedUpdate when the computer has high specs related to the complexity of the project
____________________________________________________________
Watch the following repository where I'll be sharing solutions and examples for Unity
👇
https://github.com/GameDevTraum/GDT-S...
https://gamedevtraum.itch.io/
/ gamedevtraum
____________________________________________________________