中文
Appearance
Input.GetKeyUp(key)
Input
检测当前帧指定按键是否在当前帧的松开事件中被松开。
KeyCode
boolean
OnUpdate(): void { let result = Input.GetKeyUp(KeyCode.Backspace); if (result) { Debug.Log("····松开空格键····"); } }