Table of Contents

Class UIButtonsInputAdapter

Namespace
Goehler.OrbitalCam
Assembly
Goehler.OrbitalCam.Runtime.dll

Reads on-screen UI button presses and feeds them to the camera. Backend-independent — works alongside either the Legacy or New Input System components. Each button needs a ButtonEventTrigger dragged into the matching slot.

[AddComponentMenu("Goehler Studios/Orbital Cam/Input/UI Buttons")]
public class UIButtonsInputAdapter : InputAdapter
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
UIButtonsInputAdapter
Inherited Members

Properties

MoveInput

Continuous move axis (e.g. WASD, left stick). X = strafe, Y = forward.

public override Vector2 MoveInput { get; }

Property Value

Vector2

RotateInput

Continuous rotate-and-tilt axis (e.g. Q/E + F/C, right stick). X = rotate, Y = tilt.

public override Vector2 RotateInput { get; }

Property Value

Vector2

RotateStepInput

Drain-on-read: returns the accumulated step delta in degrees since the last read and resets internal state to zero. X = rotate steps (positive left), Y = tilt steps (positive up).

public override Vector2 RotateStepInput { get; }

Property Value

Vector2

ZoomInput

Continuous zoom axis.

public override float ZoomInput { get; }

Property Value

float

Methods

Sample()

Called once per frame by the camera before any axis getter is read. Pull from the device source here and cache results for the getters.

public override void Sample()