aestheticinteractive / Hover-UI-Kit

Create beautiful user interfaces for immersive VR/AR experiences.
Other
792 stars 162 forks source link

How do I add event listeners to an item? #65

Closed rahb3rt closed 7 years ago

rahb3rt commented 7 years ago

Hi, I was wondering, how do add event listeners into Hover you. ie. if I selected Item A (a checkbox) that Action A would occur. Is there a script for adding in those listeners?

Thanks in advance!

zachkinstner commented 7 years ago

Hi @rahb3rt, the item event handlers are located within an item's "Events" area, which can be easy to miss because it's a collapsible menu in the inspector. Each item type (checkbox, slider, etc.) has a slightly different set of events. More details on the Items wiki page.

Here's a screenshot of where you'll find the event handlers in the Unity inspector:

image