docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct CinemachineDecollider.TerrainSettings

    Settings for putting the camera on top of the terrain

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Cinemachine
    Assembly: Unity.Cinemachine.dll
    Syntax
    [Serializable]
    public struct CinemachineDecollider.TerrainSettings

    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 place the camera on top of terrain layers

    Declaration
    [Tooltip("When enabled, will attempt to place the camera on top of terrain layers")]
    public bool Enabled
    Field Value
    Type Description
    bool

    MaximumRaycast

    Specifies the maximum length of a raycast used to find terrain colliders.

    Declaration
    [Tooltip("Specifies the maximum length of a raycast used to find terrain colliders")]
    public float MaximumRaycast
    Field Value
    Type Description
    float

    TerrainLayers

    Colliders on these layers will be detected.

    Declaration
    [Tooltip("Colliders on these layers will be detected")]
    public LayerMask TerrainLayers
    Field Value
    Type Description
    LayerMask
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)