Interface ICinemachineTargetGroup | Cinemachine | 2.5.0
docs.unity3d.com
    Show / Hide Table of Contents

    Interface ICinemachineTargetGroup

    Namespace: Cinemachine
    Syntax
    public interface ICinemachineTargetGroup

    Properties

    BoundingBox

    The axis-aligned bounding box of the group, computed using the targets positions and radii

    Declaration
    Bounds BoundingBox { get; }
    Property Value
    Type Description
    Bounds

    IsEmpty

    Returns true if the group has no non-zero-weight members

    Declaration
    bool IsEmpty { get; }
    Property Value
    Type Description
    Boolean

    Sphere

    The bounding sphere of the group, computed using the targets positions and radii

    Declaration
    BoundingSphere Sphere { get; }
    Property Value
    Type Description
    BoundingSphere

    Transform

    Get the MonoBehaviour's Transform

    Declaration
    Transform Transform { get; }
    Property Value
    Type Description
    Transform

    Methods

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

    Get the local-space angular bounds of the group, from a spoecific point of view. Also returns the z depth range of the members.

    Declaration
    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

    GetViewSpaceBoundingBox(Matrix4x4)

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

    Declaration
    Bounds GetViewSpaceBoundingBox(Matrix4x4 observer)
    Parameters
    Type Name Description
    Matrix4x4 observer

    The frame of reference in which to compute the bounding box

    Returns
    Type Description
    Bounds

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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023