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

    Interface IProvidesRaycastResults

    Provide access to the spatial hash

    Namespace: Unity.Labs.EditorXR.Interfaces
    Syntax
    public interface IProvidesRaycastResults : IFunctionalityProvider

    Methods

    GetFirstGameObject(Transform)

    Method used to test hover/intersection Returns the first GameObject being hovered over, or intersected with

    Declaration
    GameObject GetFirstGameObject(Transform rayOrigin)
    Parameters
    Type Name Description
    Transform rayOrigin

    The rayOrigin for intersection purposes

    Returns
    Type Description
    GameObject
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX