Zoom
Class in Zigurous.CameraSystem
Inherits from CameraBehavior<T>
Declaration
public sealed class Zoom : CameraBehavior<ZoomSettings>Description
Changes the distance of the camera from the pivot point.
Properties
| input | The current input axis value with sensitivity applied (Read only). | 
| percent | The current zoom percentage in the range [0..1] (Read only). | 
| smoothPercent | The smoothed zoom percentage in the range [0..1] (Read only). | 
| snappedPercent | The current zoom percentage snapped to the nearest increment in the range [0..1] (Read only). | 
Methods
| SetPercent | Sets the zoom percentage to the given value. | 
| SetDistance | Sets the zoom distance to the given value. The distance will be clamped within the zoom range. | 
| ResetDistance | Resets the zoom percentage to the initial distance. | 
Inherited
Properties
| settings | The settings for the behavior. | 
| enabled | Enables or disables the behavior from being updated. | 
| controller | The camera controller handling the module. | 
| registered | Whether the module has been registered to a controller. | 
| id | The unique identifier of the camera module. |