docs.unity.cn
    Show / Hide Table of Contents

    Struct ScreenComposerSettings.HardLimitSettings

    The target will not be allowed to be outside this region. When the target is within this region, the camera will gradually adjust to re-align towards the desired position, depending on the damping speed

    Namespace: Unity.Cinemachine
    Syntax
    [Serializable]
    public struct HardLimitSettings

    Fields

    Enabled

    Enables the Hard Limit settings

    Declaration
    public bool Enabled
    Field Value
    Type Description
    Boolean

    Offset

    A zero Offset means that the hard limits will be centered around the target screen position.
    A nonzero Offset will uncenter the hard limits relative to the target screen position.

    Declaration
    [Tooltip("A zero Offset means that the hard limits will be centered around the target screen position.  A nonzero Offset will uncenter the hard limits relative to the target screen position.")]
    public Vector2 Offset
    Field Value
    Type Description
    Vector2

    Size

    The target will not be allowed to be outside this region. When the target is within this region, the camera will gradually adjust to re-align towards the desired position, depending on the damping speed.
    Full screen size is 1

    Declaration
    [Tooltip("The target will not be allowed to be outside this region. When the target is within this region, the camera will gradually adjust to re-align towards the desired position, depending on the damping speed.  Full screen size is 1")]
    public Vector2 Size
    Field Value
    Type Description
    Vector2
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Saturday, May 6, 2023