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

スクリプト言語

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

EditorGUIUtility.AddCursorRect

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static function AddCursorRect(position: Rect, mouse: MouseCursor, controlID: int): void;
public static void AddCursorRect(Rect position, MouseCursor mouse, int controlID);
public static def AddCursorRect(position as Rect, mouse as MouseCursor, controlID as int) as void

Parameters

position 表示する範囲
mouse 使用するカーソル
controlID ターゲットとなるコントロールID

Description

Rect空間内のカーソルを変更するカスタムマウスポインタを追加します

	function OnGUI()
	{
		// show the "Link" cursor when the mouse is howering over this rectangle.
		EditorGUIUtility.AddCursorRect (Rect(10,10,100,100), MouseCursor.Link);		
	}