Class UsesCheckSphereMethods | Unity Reflect | 1.1.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Class UsesCheckSphereMethods

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

    Methods

    CheckSphere(IUsesCheckSphere, Vector3, Single, List<GameObject>, List<GameObject>)

    Do a sphere check against all Renderers

    Declaration
    public static bool CheckSphere(this IUsesCheckSphere user, Vector3 center, float radius, List<GameObject> objects, List<GameObject> ignoreList = null)
    Parameters
    Type Name Description
    IUsesCheckSphere user

    The functionality user

    Vector3 center

    The center of the sphere

    Single radius

    The radius of the sphere

    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 the sphere intersected any objects

    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