Event.type 类型

var type : EventType

Description描述

The type of event.

事件的类型。

参见:EventType

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void OnGUI() {
		Debug.Log("Current event detected: " + Event.current.type);
	}
}
// Prints the current event detected.
//打印当前检测的事件
function OnGUI () {
	Debug.Log("Current event detected: " + Event.current.type);
}
Page last updated: 2010-12-31