API reference

PointableCanvasEventArgs Class

Arguments from events emitted by PointableCanvasModule containing data about the state of the event system.

Constructors

PointableCanvasEventArgs ( canvas , hovered , dragging , pointerId )
Signature
Oculus.Interaction.PointableCanvasEventArgs.PointableCanvasEventArgs(Canvas canvas, GameObject hovered, bool dragging, int? pointerId=null)
Parameters
canvas: Canvas  The canvas that's being interacted with.
hovered: GameObject  The GameObject that's being hovered, if any.
dragging: bool  Whether the user is dragging at the time of this event.
pointerId: int?  Unique identifier for the pointer that triggered the event

Fields

Canvas : readonly Canvas
The canvas that's being interacted with.
Signature
readonly Canvas Oculus.Interaction.PointableCanvasEventArgs.Canvas
Dragging : readonly bool
Whether the user is dragging at the time of this event.
Corresponds to PointerEventData.dragging
Signature
readonly bool Oculus.Interaction.PointableCanvasEventArgs.Dragging
Hovered : readonly GameObject
The GameObject that's being hovered, if any.
Signature
readonly GameObject Oculus.Interaction.PointableCanvasEventArgs.Hovered
PointerId : readonly int
Gets the unique identifier for the pointer that triggered the event
Signature
readonly int Oculus.Interaction.PointableCanvasEventArgs.PointerId