Class RayEventData
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
node
The node associated with the ray
Declaration
public Node node { get; set; }
Property Value
pointerLength
The length of the direct selection pointer
Declaration
public float pointerLength { get; set; }
Property Value
rayOrigin
The root from where the ray is cast
Declaration
public Transform rayOrigin { get; set; }
Property Value
Type |
Description |
Transform |
|