CameraController2D

Controls the behaviour of the 2D camera.

Fields

NameTypeDescription
ModeEnumEither free or track.
HorizontalSpeedVector2Only applicable in free mode. Represents the left and right speed for the camera movement.
VerticalSpeedVector2Only applicable in free mode. Represents the up and down speed for the camera movement.
TransformTransform ReferenceOnly applicable in track mode. Transform component used for tracking.
HorizontalLerpFloatOnly applicable in track mode. Lerp factor in the horizontal direction.
VerticalLerpFloatOnly applicable in track mode. Lerp factor in the vertical direction.

See also

Camera2D