docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetViewSpaceAngularBounds

    GetViewSpaceAngularBounds(Matrix4x4, out Vector2, out Vector2, out Vector2)

    Get the local-space angular bounds of the group, from a specific point of view. Also returns the z depth range of the members. 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 void GetViewSpaceAngularBounds(Matrix4x4 observer, out Vector2 minAngles, out Vector2 maxAngles, out Vector2 zRange)
    Parameters
    Type Name Description
    Matrix4x4 observer

    Point of view from which to calculate, and in whose space the return values are

    Vector2 minAngles

    The lower bound of the screen angles of the members (degrees)

    Vector2 maxAngles

    The upper bound of the screen angles of the members (degrees)

    Vector2 zRange

    The min and max depth values of the members, relative to the observer

    Implements
    ICinemachineTargetGroup.GetViewSpaceAngularBounds(Matrix4x4, out Vector2, out Vector2, out Vector2)
    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)