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

    Class RayEventData

    Inheritance
    Object
    RayEventData
    Namespace: UnityEditor.Experimental.EditorVR.Modules
    Syntax
    public sealed class RayEventData : PointerEventData

    Constructors

    RayEventData(EventSystem)

    Declaration
    public RayEventData(EventSystem eventSystem)
    Parameters
    Type Name Description
    EventSystem eventSystem

    Properties

    camera

    The camera from where the ray is cast if this event came from the screen

    Declaration
    public Camera camera { get; set; }
    Property Value
    Type Description
    Camera

    node

    The node associated with the ray

    Declaration
    public Node node { get; set; }
    Property Value
    Type Description
    Node

    pointerLength

    The length of the direct selection pointer

    Declaration
    public float pointerLength { get; set; }
    Property Value
    Type Description
    Single

    rayOrigin

    The root from where the ray is cast

    Declaration
    public Transform rayOrigin { get; set; }
    Property Value
    Type Description
    Transform
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX