Update 和 FixedUpdate
Tutorial
·
Beginner
·
+0XP
·
5 mins
·
Unity Technologies

Languages available:
1. Update 和 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);
}
}