Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AsTextArea(int, int)

Configures the option to use the TextAreaAttribute.
Read time 1 minuteLast updated 13 days ago

Definition

IStateOptionBuilder<in TData> AsTextArea(int minLines = 3, int maxLines = 3)

Parameters

minLines

The minimum amount of lines the text area will use. Defaults to 3.

maxLines

The maximum amount of lines the text area can show before it starts using a scrollbar. Defaults to 3.

Returns

Type

Description

IStateOptionBuilder<T>The current builder instance for method chaining.

Remarks

Applies only to string options. Use this setting to make the option value a Text Area. A Text Area is a multi-line input field that allows users to enter large amounts of text. Its height automatically adjusts between specified minimum and maximum lines, and a scrollbar appears if the content exceeds the visible area.