Update と FixedUpdate 関数

Tutorial

Beginner

+0XP

5 mins

(17)

Unity Technologies

Update と FixedUpdate 関数

Update 関数と FixedUpdate 関数のフレームごとの変更方法とその違いについて学びます。

本チュートリアルは Beginner Scripting プロジェクトに含まれています。

前のチュートリアルは:Awake and Start

次のチュートリアルは:Vector Maths

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);
    }
}

Complete this Tutorial