Show / Hide Table of Contents

Class KeyMoveInput

Sends a Vector2 input to all subscribers, based on a set of four customizable keyboard keys, every frame that the key is held down.

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
VectorInput
MoveInput
KeyMoveInput
Inherited Members
VectorInput.OnVectorInput
VectorInput.AddInputListener(UnityAction<Vector2>)
VectorInput.RemoveInputListener(UnityAction<Vector2>)
Namespace: Goehler.IO.OrbitalCam
Assembly: Assembly-CSharp.dll
Syntax
[AddComponentMenu("Goehler Studios/Orbital Cam/Input - Keys, Move")]
public class KeyMoveInput : MoveInput
Remarks

Derives from VectorInput. The OrbitalCameraSystem collects all instances of this component, on all child objects, and then uses the AddInputListener and RemoveInputListener to subscribe to the internal OnVectorInput event.

Methods

GetInput()

Declaration
public Vector2 GetInput()
Returns
Type Description
Vector2
In this article
Back to top © 2023-2025 Goehler Studios