Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


WithDisplayName(string)

Configures the display name of the option being built.
Read time 1 minuteLast updated 9 days ago

Definition

IOptionBuilder WithDisplayName(string displayName)

Parameters

displayName

The display name to assign to the option.

Returns

Type

Description

IOptionBuilder

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 Node.IOptionDefinitionContext.AddOption) is used as the default display name.