This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
GvrAllEventsTrigger
Exposes events from GvrEventExecutor
that are fired by GvrPointerInputModule_
to the editor.
Summary
Makes it possible to handle EventSystem
events globally.
Inheritance
Inherits from: MonoBehaviour
Public attributes
OnPointerClick
TriggerEvent OnPointerClick
Event for OnPointerClick
.
OnPointerEnter
TriggerEvent OnPointerEnter
Event for OnPointerEnter
.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003e\u003ccode\u003eGvrAllEventsTrigger\u003c/code\u003e exposes events from \u003ccode\u003eGvrEventExecutor\u003c/code\u003e fired by \u003ccode\u003eGvrPointerInputModule_\u003c/code\u003e to the editor, enabling global handling of \u003ccode\u003eEventSystem\u003c/code\u003e events.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to \u003ccode\u003eOnPointerClick\u003c/code\u003e, \u003ccode\u003eOnPointerDown\u003c/code\u003e, \u003ccode\u003eOnPointerEnter\u003c/code\u003e, \u003ccode\u003eOnPointerExit\u003c/code\u003e, \u003ccode\u003eOnPointerUp\u003c/code\u003e, and \u003ccode\u003eOnScroll\u003c/code\u003e events through its \u003ccode\u003eTriggerEvent\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize these exposed events to implement custom interactions and logic based on user input in VR applications.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGvrAllEventsTrigger\u003c/code\u003e inherits from \u003ccode\u003eMonoBehaviour\u003c/code\u003e and offers public attributes corresponding to each event type.\u003c/p\u003e\n"]]],["`GvrAllEventsTrigger` exposes events from `GvrEventExecutor` to the editor, enabling global handling of `EventSystem` events. It inherits from MonoBehaviour and provides public attributes for various pointer events: `OnPointerClick`, `OnPointerDown`, `OnPointerEnter`, `OnPointerExit`, `OnPointerUp`, and `OnScroll`. Each attribute is a `TriggerEvent`, firing with associated `PointerEventData`. `GvrAllEventsTrigger.TriggerEvent` class exposes fired pointer events.\n"],null,["GvrAllEventsTrigger\n\nExposes events from [GvrEventExecutor](/vr/reference/unity/class/GvrEventExecutor#classGvrEventExecutor) that are fired by `GvrPointerInputModule_`to the editor.\n\nSummary\n\nMakes it possible to handle `EventSystem` events globally.\n\nInheritanceInherits from: MonoBehaviour\n\n| Public attributes ||\n|--------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [OnPointerClick](#classGvrAllEventsTrigger_1a5d724861e85eb1b076eb8df2ce816f42) | [TriggerEvent](/vr/reference/unity/class/GvrAllEventsTrigger/TriggerEvent#classGvrAllEventsTrigger_1_1TriggerEvent) Event for `OnPointerClick`. |\n| [OnPointerDown](#classGvrAllEventsTrigger_1af164b6451f3ff3885ababc89a5590b8c) | [TriggerEvent](/vr/reference/unity/class/GvrAllEventsTrigger/TriggerEvent#classGvrAllEventsTrigger_1_1TriggerEvent) Event for `OnPointerDown`. |\n| [OnPointerEnter](#classGvrAllEventsTrigger_1a129f533ca46843894273aa1b3519a12e) | [TriggerEvent](/vr/reference/unity/class/GvrAllEventsTrigger/TriggerEvent#classGvrAllEventsTrigger_1_1TriggerEvent) Event for `OnPointerEnter`. |\n| [OnPointerExit](#classGvrAllEventsTrigger_1ad5ae48b52aeb5279483767374d3d4bf3) | [TriggerEvent](/vr/reference/unity/class/GvrAllEventsTrigger/TriggerEvent#classGvrAllEventsTrigger_1_1TriggerEvent) Event for `OnPointerExit`. |\n| [OnPointerUp](#classGvrAllEventsTrigger_1a6db8af977addff03d6714a59e4cafed8) | [TriggerEvent](/vr/reference/unity/class/GvrAllEventsTrigger/TriggerEvent#classGvrAllEventsTrigger_1_1TriggerEvent) Event for `OnPointerUp`. |\n| [OnScroll](#classGvrAllEventsTrigger_1a0349b674f12af3dc19f9f5f98ecdfc8d) | [TriggerEvent](/vr/reference/unity/class/GvrAllEventsTrigger/TriggerEvent#classGvrAllEventsTrigger_1_1TriggerEvent) Event for `OnScroll`. |\n\n| Classes ||\n|------------------------------------------------------------------------------------------------|------------------------------------------|\n| [GvrAllEventsTrigger.TriggerEvent](/vr/reference/unity/class/GvrAllEventsTrigger/TriggerEvent) | Exposes fired `PointerEventData` events. |\n\nPublic attributes \n\nOnPointerClick \n\n```c#\nTriggerEvent OnPointerClick\n``` \nEvent for `OnPointerClick`. \n\nOnPointerDown \n\n```c#\nTriggerEvent OnPointerDown\n``` \nEvent for `OnPointerDown`. \n\nOnPointerEnter \n\n```c#\nTriggerEvent OnPointerEnter\n``` \nEvent for `OnPointerEnter`. \n\nOnPointerExit \n\n```c#\nTriggerEvent OnPointerExit\n``` \nEvent for `OnPointerExit`. \n\nOnPointerUp \n\n```c#\nTriggerEvent OnPointerUp\n``` \nEvent for `OnPointerUp`. \n\nOnScroll \n\n```c#\nTriggerEvent OnScroll\n``` \nEvent for `OnScroll`."]]