AnimancerGUI.

TryUseKey(Event, int, KeyCode) Method

Summary

Uses the `currentEvent` if the `controlID` has UnityEngine.GUIUtility.keyboardControl. If a `key` is specified, other keys will be ignored.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Containing Type
AnimancerGUI

Syntax

public static bool TryUseKey(Event currentEvent, int controlID, KeyCode key = 0)

Remarks

This method is useful for handling UnityEngine.EventType.KeyDown and UnityEngine.EventType.KeyUp.

Parameters

Name Type Description
currentEvent Event
controlID int
key KeyCode

Return Value

Type Description
bool