기술 자료

Unity Engine

Unity Engine

Init

Initializes the EnumField with a default value, and initializes its underlying type.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

Init(Enum)

Initializes the EnumField with a default value, and initializes its underlying type.
public void Init(Enum defaultValue)

Parameters

defaultValue

The typed enum value.

Init(Enum, bool)

Initializes the EnumField with a default value, and initializes its underlying type.
public void Init(Enum defaultValue, bool includeObsoleteValues)

Parameters

defaultValue

The typed enum value.

includeObsoleteValues

Set to true to display obsolete values as choices.