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

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

Parameters

minLines

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

maxLines

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

Returns

Type

Description

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

Remarks

Applies only to string input ports. Use this setting to make the port 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.