Update y FixedUpdate

Tutorial

·

Beginner

·

+0XP

·

5 mins

·

(261)

Unity Technologies

Update y FixedUpdate

Cómo efectuar cambios en cada marco con las funciones Update y FixedUpdate y cuáles son sus diferencias.

Este tutorial está incluido en el proyecto Scripting para principiantes.

Previo: Awake y Start

Siguiente: Matemáticas para vectores

Languages available:

1. Update y 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