文档

Unity Engine

Unity Engine

current

The current event that's being processed right now.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UICommonModule
public static Event current { get; set; }

Examples

using UnityEngine;public class Example : MonoBehaviour{ void OnGUI() { Debug.Log("Current detected event: " + Event.current); }}