Core - Methods

Reset Smoothing

ResetSmoothing()

Prevents smoothing on the next frame and so immediately moves the camera to the IntendedPosition.

Static Position

StaticPosition(Vector2 position, bool applyOffset = true, bool applySmoothing = true)

Sets the camera's IntendedPosition to a fixed position, defined by the value passed as the position parameter.

Parameters:
position: The position to set the camera.
applyOffset: Determines if Offset is applied to the IntendedPosition. Default is true. Set as false to use an absolute position.
applySmoothing: Determines if camera movement is smoothed to the IntendedPosition. Default is true. Set as false to move the camera instantly to the IntendedPosition.

The camera will remain at the position until DynamicPosition() is called.

Dynamic Position

DynamicPosition(bool applySmoothing = true)

If the camera is held at a position set by StaticPosition(), calling this returns camera movement to a dynamic state, where IntendedPosition is determined by Target position.

Parameters:
applySmoothing: Determines if camera movement is smoothed to the IntendedPosition. Default value is true. Set as false to move the camera instantly to the IntendedPosition.