# XRInputActionMap

Manages general supported XR input actions.

## Summary

### Inheritance

Inherits from: `ScriptableObject`

| ### Properties ||
|---|---|
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRInputActionMap#lefthandbutton` | `InputActionProperty` Gets or sets the InputActionProperty for left hand button. |
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRInputActionMap#lefthandposition` | `InputActionProperty` Gets or sets the InputActionProperty for left hand position. |
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRInputActionMap#lefthandrotation` | `InputActionProperty` Gets or sets the InputActionProperty for left hand rotation. |
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRInputActionMap#righthandbutton` | `InputActionProperty` Gets or sets the InputActionProperty for right hand button. |
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRInputActionMap#righthandposition` | `InputActionProperty` Gets or sets the InputActionProperty for right hand position. |
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRInputActionMap#righthandrotation` | `InputActionProperty` Gets or sets the InputActionProperty for right hand rotation. |

| ### Public static functions ||
|---|---|
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRInputActionMap#checkaction(InputActionProperty actionProperty)` | `bool` Checks if the given InputActionProperty has a valid action. |
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRInputActionMap#toggleaction(InputActionProperty actionProperty, bool enable)` | `void` Toggles the given input action if it's assigned. |

| ### Public functions ||
|---|---|
| `https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/XRInputActionMap#toggleallactions(bool enable)` | `void` Toggles all actions from this map if they are assigned. |

## Properties

### LeftHandButton

```c#
InputActionProperty LeftHandButton
```
Gets or sets the InputActionProperty for left hand button.

### LeftHandPosition

```c#
InputActionProperty LeftHandPosition
```
Gets or sets the InputActionProperty for left hand position.

### LeftHandRotation

```c#
InputActionProperty LeftHandRotation
```
Gets or sets the InputActionProperty for left hand rotation.

### RightHandButton

```c#
InputActionProperty RightHandButton
```
Gets or sets the InputActionProperty for right hand button.

### RightHandPosition

```c#
InputActionProperty RightHandPosition
```
Gets or sets the InputActionProperty for right hand position.

### RightHandRotation

```c#
InputActionProperty RightHandRotation
```
Gets or sets the InputActionProperty for right hand rotation.

## Public static functions

### CheckAction

```c#
bool CheckAction(
  InputActionProperty actionProperty
)
```
Checks if the given InputActionProperty has a valid action.


Details Parameters `actionProperty` The target action property. **Returns** Returns `true` if it has a valid action.

### ToggleAction

```c#
void ToggleAction(
  InputActionProperty actionProperty,
  bool enable
)
```
Toggles the given input action if it's assigned.


Details Parameters `actionProperty` The target action property. `enable` Whether to enable or disable the action.

## Public functions

### ToggleAllActions

```c#
void ToggleAllActions(
  bool enable
)
```
Toggles all actions from this map if they are assigned.


Details Parameters `enable` Whether to enable or disable the actions.