GUISkin.settings 设置选项

var settings : GUISettings

Description描述

Generic settings for how controls should behave with this skin.

这个皮肤有关控件行为的一般设置。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public string str = "This is a string with\ntwo lines of text";

	void OnGUI() {

		GUI.skin.settings.selectionColor = Color.cyan;

		str = GUILayout.TextArea(str);

	}

}
// Sets the selection color to cyan

//设置选择颜色为青色



var str : String = "This is a string with\ntwo lines of text";



function OnGUI() {

	GUI.skin.settings.selectionColor = Color.cyan;

	str = GUILayout.TextArea(str);

}
Page last updated: 2011-1-25