言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

GUISettings.cursorColor

public var cursorColor: Color;

Description

テキストフィールド内のカーソルの色を設定します

	// Set the cursor color to Cyan.
	var str : String = "This is a string with \n two lines of text";
	
	function OnGUI() { 
		GUI.skin.settings.cursorColor = Color.cyan;
		str = GUILayout.TextArea(str);
	}