Class UsesCheckBoundsMethods | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    Show / Hide Table of Contents

    Class UsesCheckBoundsMethods

    Inheritance
    Object
    UsesCheckBoundsMethods
    Namespace: Unity.Labs.EditorXR.Interfaces
    Syntax
    public static class UsesCheckBoundsMethods

    Methods

    CheckBounds(IUsesCheckBounds, Bounds, List<GameObject>, List<GameObject>)

    Do a bounds check against all Renderers

    Declaration
    public static bool CheckBounds(this IUsesCheckBounds user, Bounds bounds, List<GameObject> objects, List<GameObject> ignoreList = null)
    Parameters
    Type Name Description
    IUsesCheckBounds user

    The functionality user

    Bounds bounds

    The bounds against which to test for Renderers

    List<GameObject> objects

    The list to which intersected Renderers will be added

    List<GameObject> ignoreList

    (optional) A list of Renderers to ignore

    Returns
    Type Description
    Boolean

    True if any objects are contained within the bounds

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX