Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AsTextArea(int, int)

Configures the input port to use the TextAreaAttribute.
Read time 1 minuteLast updated 10 days ago

Definition

T 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

TThe 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.