Interface IProvidesSceneRaycast | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IProvidesSceneRaycast

    Provide access to scene raycast functionality

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(Object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.Labs.EditorXR.Interfaces
    Syntax
    public interface IProvidesSceneRaycast : IFunctionalityProvider

    Methods

    Raycast(Ray, out RaycastHit, out GameObject, Single, List<GameObject>)

    Do a raycast against all Renderers

    Declaration
    bool Raycast(Ray ray, out RaycastHit hit, out GameObject go, float maxDistance = default(float), List<GameObject> ignoreList = null)
    Parameters
    Type Name Description
    Ray ray

    The ray to use for the raycast

    RaycastHit hit

    Hit information

    GameObject go

    The GameObject which was hit, if any

    Single maxDistance

    The maximum distance of the raycast

    List<GameObject> ignoreList

    (optional) A list of Renderers to ignore

    Returns
    Type Description
    Boolean

    Whether the raycast hit a renderer

    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