docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetWeight

    GetWeight(int)

    Get the weight of the child at an index.

    Declaration
    public float GetWeight(int index)
    Parameters
    Type Name Description
    int index

    The child index. Only immediate CinemachineVirtualCameraBase children are counted.

    Returns
    Type Description
    float

    The weight of the camera. Valid only if camera is active and enabled.

    GetWeight(CinemachineVirtualCameraBase)

    Get the weight of the child CinemachineVirtualCameraBase.

    Declaration
    public float GetWeight(CinemachineVirtualCameraBase vcam)
    Parameters
    Type Name Description
    CinemachineVirtualCameraBase vcam

    The child camera.

    Returns
    Type Description
    float

    The weight of the camera. Valid only if camera is active and enabled.

    In This Article
    Back to top
    Copyright © 2023 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)