文档

Unity Engine

Unity Engine

Init

Initializes the EnumField with a default value, and initializes its underlying type.
阅读时间1 分钟最后更新于 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.