Update 및 FixedUpdate

Tutorial

Beginner

+10XP

5 mins

(56)

Unity Technologies

Update 및 FixedUpdate

Update 및 FixedUpdate 함수를 사용해 프레임마다 변경이 어떻게 이뤄지는지, 두 함수의 차이점은 무엇인지 알아보세요.

이 튜토리얼은 스크립팅의 기초 프로젝트에 포함되어 있습니다.

이전: Awake 및 Start

다음: 벡터 수학

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