Class SceneInputProviderBase
InputProvider for scene and camera related behavior.
Inheritance
Inherited Members
Namespace: NWH.Common.Input
Assembly: NWH.Common.dll
Syntax
public abstract class SceneInputProviderBase : InputProvider
Fields
| Edit this page View SourcerequireCameraPanningModifier
If true a button press will be required to unlock camera panning.
Declaration
[Tooltip(" If true a button press will be required to unlock camera panning.")]
public bool requireCameraPanningModifier
Field Value
| Type | Description |
|---|---|
| bool |
requireCameraRotationModifier
If true a button press will be required to unlock camera rotation.
Declaration
[Tooltip(" If true a button press will be required to unlock camera rotation.")]
public bool requireCameraRotationModifier
Field Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceCameraPanning()
Returns camera panning input as a Vector2 (x = horizontal, y = vertical).
Declaration
public virtual Vector2 CameraPanning()
Returns
| Type | Description |
|---|---|
| Vector2 |
CameraPanningModifier()
Returns true when the camera panning modifier button is held. If requireCameraPanningModifier is false, always returns true.
Declaration
public virtual bool CameraPanningModifier()
Returns
| Type | Description |
|---|---|
| bool |
CameraRotation()
Returns camera rotation input as a Vector2 (x = horizontal, y = vertical).
Declaration
public virtual Vector2 CameraRotation()
Returns
| Type | Description |
|---|---|
| Vector2 |
CameraRotationModifier()
Returns true when the camera rotation modifier button is held. If requireCameraRotationModifier is false, always returns true.
Declaration
public virtual bool CameraRotationModifier()
Returns
| Type | Description |
|---|---|
| bool |
CameraZoom()
Returns camera zoom input value. Positive = zoom in, negative = zoom out.
Declaration
public virtual float CameraZoom()
Returns
| Type | Description |
|---|---|
| float |
ChangeCamera()
Returns true when the change camera button is pressed.
Declaration
public virtual bool ChangeCamera()
Returns
| Type | Description |
|---|---|
| bool |
ChangeVehicle()
Returns true when the change vehicle button is pressed.
Declaration
public virtual bool ChangeVehicle()
Returns
| Type | Description |
|---|---|
| bool |
CharacterMovement()
Returns character movement input as a Vector2 (x = horizontal, y = forward/back).
Declaration
public virtual Vector2 CharacterMovement()
Returns
| Type | Description |
|---|---|
| Vector2 |
ToggleGUI()
Returns true when the toggle GUI button is pressed.
Declaration
public virtual bool ToggleGUI()
Returns
| Type | Description |
|---|---|
| bool |