Event.current 当前事件

static var current : Event

Description描述

The current event that's being processed right now.

现在正在处理的当前事件。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void OnGUI() {
		Debug.Log("Current detected event: " + Event.current);
	}
}
function OnGUI() {
	Debug.Log("Current detected event: " + Event.current);
}
Page last updated: 2010-12-31