Struct SceneInputActions.CameraControlsActions
Provides access to input actions defined in input action map "CameraControls".
Namespace: NWH.Common.Input
Assembly: NWH.Common.dll
Syntax
public struct SceneInputActions.CameraControlsActions
Constructors
| Edit this page View SourceCameraControlsActions(SceneInputActions)
Construct a new instance of the input action map wrapper class.
Declaration
public CameraControlsActions(SceneInputActions wrapper)
Parameters
| Type | Name | Description |
|---|---|---|
| SceneInputActions | wrapper |
Properties
| Edit this page View SourceCameraPanning
Provides access to the underlying input action "CameraControls/CameraPanning".
Declaration
public InputAction CameraPanning { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
CameraPanningModifier
Provides access to the underlying input action "CameraControls/CameraPanningModifier".
Declaration
public InputAction CameraPanningModifier { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
CameraRotation
Provides access to the underlying input action "CameraControls/CameraRotation".
Declaration
public InputAction CameraRotation { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
CameraRotationModifier
Provides access to the underlying input action "CameraControls/CameraRotationModifier".
Declaration
public InputAction CameraRotationModifier { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
CameraZoom
Provides access to the underlying input action "CameraControls/CameraZoom".
Declaration
public InputAction CameraZoom { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
ChangeCamera
Provides access to the underlying input action "CameraControls/ChangeCamera".
Declaration
public InputAction ChangeCamera { get; }
Property Value
| Type | Description |
|---|---|
| InputAction |
enabled
Declaration
public bool enabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceAddCallbacks(ICameraControlsActions)
Adds UnityEngine.InputSystem.InputAction.started, UnityEngine.InputSystem.InputAction.performed and UnityEngine.InputSystem.InputAction.canceled callbacks provided via on all input actions contained in this map.
Declaration
public void AddCallbacks(SceneInputActions.ICameraControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| SceneInputActions.ICameraControlsActions | instance | Callback instance. |
Remarks
If instance is null or instance have already been added this method does nothing.
See Also
| Edit this page View SourceDisable()
Declaration
public void Disable()
Enable()
Declaration
public void Enable()
Get()
Provides access to the underlying input action map instance.
Declaration
public InputActionMap Get()
Returns
| Type | Description |
|---|---|
| InputActionMap |
RemoveCallbacks(ICameraControlsActions)
Unregisters and unregisters all input action callbacks via UnregisterCallbacks(ICameraControlsActions).
Declaration
public void RemoveCallbacks(SceneInputActions.ICameraControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| SceneInputActions.ICameraControlsActions | instance |
See Also
| Edit this page View SourceSetCallbacks(ICameraControlsActions)
Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via .
Declaration
public void SetCallbacks(SceneInputActions.ICameraControlsActions instance)
Parameters
| Type | Name | Description |
|---|---|---|
| SceneInputActions.ICameraControlsActions | instance |
Remarks
If instance is null, calling this method will only unregister all existing callbacks but not register any new callbacks.
See Also
Operators
| Edit this page View Sourceimplicit operator InputActionMap(CameraControlsActions)
Implicitly converts an
Declaration
public static implicit operator InputActionMap(SceneInputActions.CameraControlsActions set)
Parameters
| Type | Name | Description |
|---|---|---|
| SceneInputActions.CameraControlsActions | set |
Returns
| Type | Description |
|---|---|
| InputActionMap |