Struct CinemachineDecollider.DecollisionSettings
Settings for pushing the camera out of intersecting objects
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Serializable]
public struct CinemachineDecollider.DecollisionSettings
Fields
Damping
How gradually the camera returns to its normal position after having been corrected. Higher numbers will move the camera more gradually back to normal.
Declaration
[Range(0, 10)]
[Tooltip("How gradually the camera returns to its normal position after having been corrected. Higher numbers will move the camera more gradually back to normal.")]
public float Damping
Field Value
Type | Description |
---|---|
float |
Enabled
When enabled, will attempt to push the camera out of intersecting objects
Declaration
[Tooltip("When enabled, will attempt to push the camera out of intersecting objects")]
public bool Enabled
Field Value
Type | Description |
---|---|
bool |
ObstacleLayers
Objects on these layers will be detected.
Declaration
[Tooltip("Objects on these layers will be detected")]
public LayerMask ObstacleLayers
Field Value
Type | Description |
---|---|
LayerMask |
SmoothingTime
Smoothing to apply to obstruction resolution. Nearest camera point is held for at least this long.
Declaration
[Range(0, 2)]
[Tooltip("Smoothing to apply to obstruction resolution. Nearest camera point is held for at least this long")]
public float SmoothingTime
Field Value
Type | Description |
---|---|
float |
UseFollowTarget
Use the Follow target when resolving occlusions, instead of the LookAt target.
Declaration
[EnabledProperty("Enabled", "")]
public CinemachineDecollider.DecollisionSettings.FollowTargetSettings UseFollowTarget
Field Value
Type | Description |
---|---|
CinemachineDecollider.DecollisionSettings.FollowTargetSettings |