This site has been permanently archived. The content on this site was last updated in 2019.
GvrPointerEventData
This script extends the Unity PointerEventData struct with GoogleVR-specific data.
Summary
Inheritance
Inherits from: PointerEventData
Public attributes
|
gvrButtonsDown
|
GvrControllerButton
The mask of buttons that are currently down.
|
Public attributes
GvrControllerButton gvrButtonsDown
The mask of buttons that are currently down.
Public functions
GvrPointerEventData
GvrPointerEventData(
EventSystem eventSystem
)
Initializes a new instance of the GvrPointerEventData class.
Details |
Parameters |
eventSystem
|
The event system associated with this event.
|
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["`GvrPointerEventData` extends Unity's `PointerEventData` to include GoogleVR-specific data, primarily focusing on controller interactions."],["It introduces `gvrButtonsDown`, a `GvrControllerButton` mask indicating currently pressed buttons on the GoogleVR controller."],["The script provides a constructor that initializes a new `GvrPointerEventData` instance associated with a given event system."]]],["The `GvrPointerEventData` script extends Unity's `PointerEventData` with GoogleVR-specific features. It includes a constructor `GvrPointerEventData(EventSystem eventSystem)` to initialize the class, requiring an `EventSystem`. It also has a public attribute, `gvrButtonsDown`, which is a mask (`GvrControllerButton`) that indicates which VR controller buttons are currently pressed. This script's purpose is to handle specific GoogleVR input events within Unity.\n"]]