Update and FixedUpdate



using System.Collections;
using UnityEngine;

public class UpdateAndFixedUpdate : MonoBehaviour
    void FixedUpdate()
        Debug.Log(“FixedUpdate time :” + Time.deltaTime);

    void Update()
        Debug.Log(“Update time :” + Time.deltaTime);


What I Learned

This tutorial taught me the difference between using Update and FixedUpdate in a script. Attaching the script to and object and using the Debug function helped show the difference in the console view. FixedUpdate updated physics every 0.2 seconds while the other was more random. One problem I had to solve was making sure my script was attached to the right object and was accurate.

Leave a Reply

Your email address will not be published. Required fields are marked *