Core - Properties

Intended Position

Vector2 IntendedPosition { get; }

The position the camera moves towards.

Intended Position Without Offset

Vector2 IntendedPositionWithoutOffset { get; }

The position the camera moves towards without Offset applied.

On Rail

bool OnRail { get; }

Returns true if the camera is on a Rail.

Current Rail

Railcam2D.Rail CurrentRail { get; set; }

The Rail component the camera is currently on. Value can only be set to a Rail component that is attached to a child of the camera object.

Current Trigger

Railcam2D.Trigger CurrentTrigger { get; }

The Trigger component the camera is currently located within.