Version: 2022.3
言語: 日本語

TextAreaAttribute

class in UnityEngine

/

継承:PropertyAttribute

マニュアルに切り替える

説明

フレキシブルな高さとスクロールできるテキストエリアで文字列を編集できる属性

テキストエリアの最大と最小の行数を指定し、フィールドをテキストのサイズに応じて大きくすることができます。スクロールバーはテキストがテキストエリアより大きくなった場合に表示されます。

Note: The maximum lines refers to the maximum size of the TextArea. There is no maximum to the number of lines entered by the user.


Text Area in Inspector.

using UnityEngine;

public class TextAreaExample : MonoBehaviour { [TextAreaAttribute] public string MyTextArea; }

変数

maxLinesスクロールバーを使用し始める前に表示できるテキストエリアの最大の行数
minLinesテキストエリアで使用する最小の行数

コンストラクタ

TextAreaAttributeフレキシブルな高さとスクロールできるテキストエリアで文字列を編集できる属性

継承メンバー

変数

order複数の DecorationDrawer がある場合に描画する順番を指定するフィールド