Class ButtonRotateStepInput
Sends an upscaled Vector2 input to all subscribers, based on a set of four customizable Buttons using ButtonEventTrigger, once when the button is clicked.
Inheritance
Inherited Members
Namespace: Goehler.IO.OrbitalCam
Assembly: Assembly-CSharp.dll
Syntax
[AddComponentMenu("Goehler Studios/Orbital Cam/Input - Buttons, Rotate in steps")]
public class ButtonRotateStepInput : 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
_rotateLeftButton
This field can only be set via the editor. Use it to set a reference to a ButtonEventTrigger that will trigger the cameras rotate left method.
Declaration
[SerializeField]
protected ButtonEventTrigger _rotateLeftButton
Field Value
| Type | Description |
|---|---|
| ButtonEventTrigger |
_rotateRightButton
This field can only be set via the editor. Use it to set a reference to a ButtonEventTrigger that will trigger the cameras rotate right method.
Declaration
[SerializeField]
protected ButtonEventTrigger _rotateRightButton
Field Value
| Type | Description |
|---|---|
| ButtonEventTrigger |
_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
[SerializeField]
protected float _rotateStepAngle
Field Value
| Type | Description |
|---|---|
| float |
_tiltDownButton
This field can only be set via the editor. Use it to set a reference to a ButtonEventTrigger that will trigger the cameras tilt down method.
Declaration
[SerializeField]
protected ButtonEventTrigger _tiltDownButton
Field Value
| Type | Description |
|---|---|
| ButtonEventTrigger |
_tiltStepAngle
Declaration
[Tooltip("Degrees")]
[SerializeField]
protected float _tiltStepAngle
Field Value
| Type | Description |
|---|---|
| float |
_tiltUpButton
This field can only be set via the editor. Use it to set a reference to a ButtonEventTrigger that will trigger the cameras tilt up method.
Declaration
[SerializeField]
protected ButtonEventTrigger _tiltUpButton
Field Value
| Type | Description |
|---|---|
| ButtonEventTrigger |