docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetViewSpaceBoundingBox

    GetViewSpaceBoundingBox(Matrix4x4, bool)

    The axis-aligned bounding box of the group, in a specific reference frame. Note that this result is only valid after DoUpdate has been called. If members are added or removed after that call or change their weights or active state, this will not necessarily return correct information before the next update.

    Declaration
    public Bounds GetViewSpaceBoundingBox(Matrix4x4 observer, bool includeBehind)
    Parameters
    Type Name Description
    Matrix4x4 observer

    The frame of reference in which to compute the bounding box

    bool includeBehind

    If true, members behind the observer (negative z) will be included

    Returns
    Type Description
    Bounds

    The axis-aligned bounding box of the group, in the desired frame of reference

    Implements
    ICinemachineTargetGroup.GetViewSpaceBoundingBox(Matrix4x4, bool)
    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)