Version: 2019.4

説明

Behaviour が有効の場合、LateUpdate は毎フレーム呼びだされます

LateUpdate は Update 関数が呼び出された後に実行されます。 これはスクリプトの実行順を決める時に便利です。例えばカメラを追従するには Update で移動された結果を基に常に LateUpdate で位置を更新する必要があります。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void LateUpdate() { transform.Translate(0, Time.deltaTime, 0); } }

In order to get the elapsed time since last call to LateUpdate, use Time.deltaTime. This function is only called if the Behaviour is enabled. Override this function in order to provide your component's functionality.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961