文档

Unity Engine

Unity Engine

IOptionBuilder<TData>

Interface used to build and configure node options in a fluent manner.
阅读时间1 分钟最后更新于 1 个月前

Definition

public interface IOptionBuilder<in TData>

Remarks

Provided by the Node.IOptionDefinitionContext in a node's Node.OnDefineOptions method.

Methods

Method

Description

AsTextAreaConfigures the option to use the TextAreaAttribute.
BuildBuilds and returns the final INodeOption instance based on the current configuration of the builder.
DelayedConfigures the option to use the DelayedAttribute.
ShowInInspectorOnlyConfigures the option to be shown only in the inspector, not in the node header.
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.