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

    Class UsesRaycastResultsMethods

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

    Methods

    GetFirstGameObject(IUsesRaycastResults, Transform)

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

    Declaration
    public static GameObject GetFirstGameObject(this IUsesRaycastResults user, Transform rayOrigin)
    Parameters
    Type Name Description
    IUsesRaycastResults user

    The functionality user

    Transform rayOrigin

    The rayOrigin for intersection purposes

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