Update and FixedUpdate

Tutorial

Beginner

+10XP

5m

(3881)

Unity Technologies

Update and FixedUpdate

How to effect changes every frame with the Update and FixedUpdate functions, and their differences.

Previous: Awake and Start

Next: Vector Maths

1. Update and FixedUpdate

using UnityEngine;
using System.Collections;

public class UpdateAndFixedUpdate : MonoBehaviour
{
    void FixedUpdate ()
    {
        Debug.Log("FixedUpdate time :" + Time.deltaTime);
    }
    
    
    void Update ()
    {
        Debug.Log("Update time :" + Time.deltaTime);
    }
}

Complete this Tutorial