/** * Register a function to be called before keyboard input is sent to SceneEditor base, which if return * is true prevents keyboard input from going to scene editor. */ public static void AddKeyInUseDelegate(KeyInUse del) { if (Instance.keyUsedDelegate == null) { Instance.keyUsedDelegate = del; } else { Instance.keyUsedDelegate += del; } }
/** * Remove a KeyInUseDelegate fuction. */ public static void RemoveKeyInUseDelegate(KeyInUse del) { Instance.keyUsedDelegate -= del; }