Zoom

Inherits from CameraBehavior<T>

Declaration

public sealed class Zoom : CameraBehavior<ZoomSettings>

Description

Changes the distance of the camera from the pivot point.

Properties

inputThe current input axis value with sensitivity applied (Read only).
percentThe current zoom percentage in the range [0..1] (Read only).
smoothPercentThe smoothed zoom percentage in the range [0..1] (Read only).
snappedPercentThe current zoom percentage snapped to the nearest increment in the range [0..1] (Read only).

Methods

SetPercentSets the zoom percentage to the given value.
SetDistanceSets the zoom distance to the given value. The distance will be clamped within the zoom range.
ResetDistanceResets the zoom percentage to the initial distance.
Inherited

Properties

settingsThe settings for the behavior.
enabledEnables or disables the behavior from being updated.
controllerThe camera controller handling the module.
registeredWhether the module has been registered to a controller.
idThe unique identifier of the camera module.