Table of Contents

UI Buttons

Controls the camera with on-screen Button clicks and presses. Backend-independent: it works with either the Legacy Input Components or the New Input System Component.

Wiring a UI Button

  1. Create a Unity Button in your canvas as you would for any other UI.
  2. Add a ButtonEventTrigger component to that Button. (Add Component → Goehler Studios → Orbital Cam → Input → UI Button Event Trigger). It detects press, release, and hover-exit events, which UIButtonsInputAdapter listens to.
  3. On the UIButtonsInputAdapter component, drag the Button (or rather, its ButtonEventTrigger) into the slot for the action it should drive, such as Move Forward Button, Rotate Left Continuous Button, Zoom In Button, etc.

The adapter has slots for Movement (4), Continuous Rotate/Tilt (4), Stepped Rotate/Tilt (4), and Zoom (2). These controls can be toggle on/off pr. category. Rotate Step Angle and Tilt Step Angle are controlled separately from the keyboard's settings.

UI Buttons component in the Inspector