- Home /
Get Global PointerEventData
I have to create my own PointerEventData and constentlyy update it's position, not to mention that it comes with a bunch of default values.
Is there a global/static PointerEventData I can get, maybe one generated by the event system or Input module, so I don't have to deal with the default values and manually update its position.
Thanks
Answer by cjdev · Jun 14, 2016 at 09:09 PM
I'm not sure what you mean by global/static event data as it's basically just an object that contains the info from a mouse event. If the data from the event is what you're looking for you can hook into the event system with a custom function using an Event Trigger.
Your answer
Follow this Question
Related Questions
[4.6 - UI] How to call an event with button when the pointer is up the button image. 1 Answer
Is it wise to add scripts to Unity's Event System? 0 Answers
Cursor.lockstate and OnPointerEnter not working together 2 Answers
How do I stop EventSystem.currentSelectedGameObject from changing on a button press 0 Answers