AutoFocusSettings
Class in Zigurous.CameraSystem
Inherits from CameraBehaviorSettings<T>
Declaration
[Serializable]
public sealed class AutoFocusSettings : CameraBehaviorSettings<AutoFocus>
Description
Settings for a depth of field effect.
Properties
focusMode | The type of focus mode to use. |
raycastLayers | The layers that are hit by the camera's raycast. |
postProcessingLayer | The Unity layer the post processing effect is be applied to. It is usually recommended to have a dedicated layer for post processing. |
aperture | The ratio of aperture (known as f-stop or f-number). The smaller the value, the shallower the depth of field is. |
focalLength | The distance between the lens and the film. The larger the value, the shallower the depth of field is. |
focusTime | The amount of seconds it takes the camera to change focus distance. |
distanceRange | The minimum and maximum focus distance. |
Inherited
Properties
active | Whether the settings are active on a camera profile. Inactive settings will not display in the editor. |
enabled | Turns on or off the settings behavior. Enabled behaviors are updated every frame. |
isActiveAndEnabled | Whether the settings are active and enabled. |