Optionalstate: booleanOptionalmin: numberOptionalmax: numberOptionaltype: EnumValue<UIOptionType, number>Protected_maxProtected_minProtected_stateProtected_typeStaticfixedConstructs a UI option notifying the UI layout that this element has a fixed height. This will override the height property set in element style.
Height in pixels.
Optionalscalable: booleanIf true, will enable the scaling. If false, will disable.
New option object that can be used for initializing a UI element.
StaticfixedConstructs a UI option notifying the UI layout that this element has a fixed width. This will override the width property set in element style.
Width in pixels.
Optionalscalable: booleanIf true, will enable the scaling. If false, will disable.
New option object that can be used for initializing a UI element.
StaticflexibleConstructs a UI option notifying the UI layout that this element has a flexible height with optional min/max constraints. Element will be resized according to its contents and parent layout but will always stay within the provided range.
OptionalminHeight: numberMinimum height in pixels. Element will never be smaller than this height.
OptionalmaxHeight: numberMaximum height in pixels. Element will never be larger than this height. Specify zero for unlimited height.
Optionalexpandable: booleanIf set to true, the element will expand and take all the available space, similar to a Flexible Space element. By default set to false, which disable the expansion behavior.
New option object that can be used for initializing a UI element.
StaticflexibleConstructs a UI option notifying the UI layout that this element has a flexible width with optional min/max constraints. Element will be resized according to its contents and parent layout but will always stay within the provided range.
OptionalminWidth: numberMinimum width in pixels. Element will never be smaller than this width.
OptionalmaxWidth: numberMaximum width in pixels. Element will never be larger than this width. Specify zero for unlimited width.
Optionalexpandable: booleanIf set to true, the element will expand and take all the available space, similar to a Flexible Space element. By default set to false, which disable the expansion behavior.
New option object that can be used for initializing a UI element.
StaticisDetermines if both UIOption instances are equal.
StaticpositionConstructs a UI option notifying the UI layout that this element should be positioned at this offset from the parent UI panel. This option is ignored if element is part of a layout since it controls its placement.
Horizontal offset from the parent UI panel origin, in pixels.
Vertical offset from the parent UI panel origin, in pixels.
New option object that can be used for initializing a UI element.
StaticscalableConstructs a UI option notifying the UI layout that this element should scale it's height with display DPI scale.
Optionalscalable: booleanIf true, will enable the scaling. If false, will disable.
New option object that can be used for initializing a UI element.
StaticscalableConstructs a UI option notifying the UI layout that this element should scale it's width with display DPI scale.
Optionalscalable: booleanIf true, will enable the scaling. If false, will disable.
New option object that can be used for initializing a UI element.
The UIOption controls UI element layout options, possibly by overriding the default options specified in UI element style.
The class follows the 'copy-on-write' pattern, which means that every operation returns a copy of the UIOption with updates values. It also implies that the values of the UIOption cannot be directly modified.
The concept of immutability improves sharing of objects as all types in TypeScript are assigned by identity, instead of by-value (e.g. a copy) as in other programming languages like C.