TextArea

示例程序
说明生成一块显示可编辑文本的区域

用法

public static string TextArea(string text, params GUILayoutOption[] options);

public static string TextArea(string text, GUIStyle style, params GUILayoutOption[] options);

参数

text

可编辑的文本。

style

(可选)由 GUIStyle 类型定义的 GUI 样式。

options

(可选)用于指定额外的布局属性,该参数将覆盖默认样式。

示例

public override void OnInspectorGUI () {
		_target.Text = EditorGUILayout.TextArea (_target.Text);
}

编译结果如下: