Method TryGetInputSourceName
TryGetInputSourceName(InputAction, int, out string, InputSourceNameFlags, InputDevice)
Return the name of the input source bound to the given action
Declaration
public static bool TryGetInputSourceName(InputAction inputAction, int index, out string name, OpenXRInput.InputSourceNameFlags flags = InputSourceNameFlags.All, InputDevice inputDevice = null)
Parameters
Type | Name | Description |
---|---|---|
InputAction | inputAction | Input Action |
int | index | Index of the input source in the case of multiple bindings. |
string | name | Name of the input source if an input source was found or an empty string if none was found |
OpenXRInput.InputSourceNameFlags | flags | Flags that indicate which parts of the input source name are requested. |
InputDevice | inputDevice | Optional input device to limit search to |
Returns
Type | Description |
---|---|
bool | True if an input source was found |