ドキュメント

Unity Engine

Unity Engine

WithDisplayName(string)

Configures the display name of the option being built.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前

Definition

IStateOptionBuilder WithDisplayName(string displayName)

Parameters

displayName

The display name to assign to the option.

Returns

Type

Description

IStateOptionBuilderThe current builder instance for method chaining.

Remarks

The display name doesn't affect functionality; it can improve usability and readability. If not set explicitly using this method, the name passed during creation (calling State.IOptionDefinitionContext.AddOption) is used as the default display name.