Docs / Camera

Glossary: BaseCameraController

The members of BaseCameraController, in alphabetical order.

Color legend plain property method

The base of every camera controller: what drives a camera from inside its update.

An abstract class. The controllers page shows it in context, with code. Derive from it for a controller of your own.

Names are colored by what they are: a property or a method; values and fields keep the plain color.

Properties

Camera →

Camera? · Protected, read-only. The camera this controller drives, or null while it is detached. Already set when SyncFrom runs.

Fields

ConvergenceAmount →

float · Protected constant. 0.95: the share of the way an easing covers in its convergence time, as a free camera’s snap does in AxisSnapConvergenceSec.

Methods

ApplyTo() →

ApplyTo(Camera camera) · Virtual. Attaches the controller to the camera, the same as assigning camera.Controller. Throws ArgumentNullException for null.

Parameter Type Description
camera Camera The camera to drive.

SyncFrom() →

SyncFrom() · Protected, virtual. Called once when the controller is attached, with Camera set, to take over the camera’s current state. Does nothing by default.

Update() →

Update(float elapsedSeconds) · Abstract. Moves the camera. The camera calls it at the start of its own update; don’t call it yourself as well.

Parameter Type Description
elapsedSeconds float The seconds since the last update.