Class KeyRotateStepInput
Sends an upscaled Vector2 input to all subscribers, based on a set of four customizable keyboard keys, once when the key is pressed.
Inheritance
Inherited Members
Namespace: Goehler.IO.OrbitalCam
Assembly: Assembly-CSharp.dll
Syntax
[AddComponentMenu("Goehler Studios/Orbital Cam/Input - Keys, Rotate in steps")]
public class KeyRotateStepInput : RotateStepInput
Remarks
Derives from StepInput. The OrbitalCameraSystem collects all instances of this component, on all child objects, and then uses the AddClickListener and RemoveClickListener to subscribe to the internal OnVectorClick event.
Fields
_rotateLeftKey
This field can only be set via the editor. Use it to pick a keyboard button that will trigger the cameras rotate left method.
Declaration
[SerializeField]
protected KeyCode _rotateLeftKey
Field Value
| Type | Description |
|---|---|
| KeyCode |
_rotateRightKey
This field can only be set via the editor. Use it to pick a keyboard button that will trigger the cameras rotate right method.
Declaration
[SerializeField]
protected KeyCode _rotateRightKey
Field Value
| Type | Description |
|---|---|
| KeyCode |
_rotateStepAngle
This field can only be set via the editor. Set a value in degrees. When clicking the corresponding keyboard key set below, the camera will rotate by this many degrees.
Declaration
[Tooltip("Degrees")]
[SerializeField]
protected float _rotateStepAngle
Field Value
| Type | Description |
|---|---|
| float |
_tiltDownKey
This field can only be set via the editor. Use it to pick a keyboard button that will trigger the cameras tilt down method.
Declaration
[SerializeField]
protected KeyCode _tiltDownKey
Field Value
| Type | Description |
|---|---|
| KeyCode |
_tiltStepAngle
This field can only be set via the editor. Set a value in degrees. When clicking the corresponding keyboard key set below, the camera will tilt by this many degrees.
Declaration
[Tooltip("Degrees")]
[SerializeField]
protected float _tiltStepAngle
Field Value
| Type | Description |
|---|---|
| float |
_tiltUpKey
This field can only be set via the editor. Use it to pick a keyboard button that will trigger the cameras tilt up method.
Declaration
[SerializeField]
protected KeyCode _tiltUpKey
Field Value
| Type | Description |
|---|---|
| KeyCode |