Class PointerEventDataImmersive
Custom PointerEventData class to add CanvasPosition property.
Inheritance
System.Object
PointerEventDataImmersive
Namespace: Immersive.Input
Assembly: cs.temp.dll.dll
Syntax
public class PointerEventDataImmersive : PointerEventData
Constructors
PointerEventDataImmersive(EventSystem)
Declaration
public PointerEventDataImmersive(EventSystem eventSystem)
Parameters
| Type | Name | Description |
|---|---|---|
| EventSystem | eventSystem |
Properties
CanvasPosition
The position of the pointer in canvas space. This can differ from the screen position when the camera aspect ratio doesn't match the canvas aspect ratio.
Declaration
public Vector2 CanvasPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |