ドキュメント

Unity Engine

Unity Engine

IStateOptionBuilder

Interface used to build and configure state options in a fluent manner.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public interface IStateOptionBuilder

Remarks

Provided by the State.IOptionDefinitionContext in a state's State.OnDefineOptions method.

Examples

protected override void OnDefineOptions(IOptionDefinitionContext context){ context.AddOption("MyOption", typeof(int)) .WithDefaultValue(2) .Delayed();}

Methods

Method

Description

AsTextAreaConfigures the option to use the TextAreaAttribute.
BuildBuilds and returns the final IStateOption instance based on the current configuration of the builder.
DelayedConfigures the option to use the DelayedAttribute.
WithDefaultValueConfigures the default value for the option being built.
WithDisplayNameConfigures the display name of the option being built.
WithTooltipConfigures the tooltip text for the option being built.