Tanoda
|
Public Member Functions | |
void | SetEditor (pb_SceneEditor editor) |
Static Public Member Functions | |
static void | AddMouseInUseDelegate (MouseInUse del) |
static void | RemoveMouseInUseDelegate (MouseInUse del) |
static void | AddKeyInUseDelegate (KeyInUse del) |
static void | RemoveKeyInUseDelegate (KeyInUse del) |
static pb_SceneEditor | GetCurrentEditor () |
static bool | IsMouseInUse () |
static bool | IsKeyInUse () |
Public Attributes | |
pb_SceneEditor | currentEditor |
pb_SceneEditor | _editor |
MouseInUse | mouseUsedDelegate = null |
KeyInUse | keyUsedDelegate = null |
Protected Member Functions | |
override void | Awake () |
virtual void | Start () |
![]() | |
virtual void | Initialize () |
virtual void | Awake () |
Additional Inherited Members | |
![]() | |
virtual bool | dontDestroyOnLoad [get] |
Override to maintain an instance of this object across level loads. More... | |
static T | instance [get] |
static T | nullableInstance [get] |
Responsible for handling mouse and keyboard input and feeding events to scene editor modes. When extending the runtime editor, you will register pb_SceneEditor objects with this class, which handles disabling the current editor and setting up the new.
Definition at line 16 of file pb_InputManager.cs.
|
static |
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.
Definition at line 54 of file pb_InputManager.cs.
|
static |
Register a function to be called before mouse input is sent to SceneEditor base, which if return is true prevents mouse input from going to scene editor.
Definition at line 34 of file pb_InputManager.cs.
|
protectedvirtual |
On initialization, check that this is not a duplicate and set the instance value.
Reimplemented from GILES.pb_MonoBehaviourSingleton< pb_InputManager >.
Definition at line 112 of file pb_InputManager.cs.
|
static |
Return the scene editor that is currently in use.
Definition at line 101 of file pb_InputManager.cs.
|
static |
If another script wants priority of keyboard presses, this will return true. Ex: If any UGUI control has focus.
Definition at line 174 of file pb_InputManager.cs.
|
static |
If another script wants priority of mouse, this will return true.
Definition at line 165 of file pb_InputManager.cs.
|
static |
Remove a KeyInUseDelegate fuction.
Definition at line 65 of file pb_InputManager.cs.
|
static |
Remove a mouseInUseDelegate fuction.
Definition at line 45 of file pb_InputManager.cs.
void GILES.pb_InputManager.SetEditor | ( | pb_SceneEditor | editor | ) |
Set the editor mode to editor
. Classes inheriting pb_SceneEditor are the brains behind level editor interaction - they are fed events and input from pb_InputManager and can decide what to do with the pb_Scene from there.
Definition at line 87 of file pb_InputManager.cs.
|
protectedvirtual |
Load the camera reference and enable the default editor.
Definition at line 121 of file pb_InputManager.cs.
pb_SceneEditor GILES.pb_InputManager._editor |
Definition at line 28 of file pb_InputManager.cs.
pb_SceneEditor GILES.pb_InputManager.currentEditor |
Definition at line 21 of file pb_InputManager.cs.
KeyInUse GILES.pb_InputManager.keyUsedDelegate = null |
Multi-cast delegate to be invoked when checking if keyboard input should be forwarded to the currently in-use scene editor.
Definition at line 80 of file pb_InputManager.cs.
MouseInUse GILES.pb_InputManager.mouseUsedDelegate = null |
Multi-cast delegate to be invoked when checking if mouse input should be forwarded to the currently in-use scene editor.
Definition at line 74 of file pb_InputManager.cs.