文档

Unity Engine

Unity Engine

AsTextArea(int, int)

Configures the option to use the TextAreaAttribute.
阅读时间1 分钟最后更新于 1 个月前

Definition

IOptionBuilder 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

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