You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just going to ask this since I think the question is relevant for everyone. How do I properly register HoverCast events? I usually just hack around until I find a good enough solution, its usually bad for elegance.
I need to register events such as checkbox checked/unchecked, from the context of any script.
The text was updated successfully, but these errors were encountered:
Each item type has its own data component, such as HoverItemDataCheckbox and HoverItemDataSlider. These components are responsible for maintaining their item's values, and for triggering the item's events.
[...] These components all provide type-specific events, which you can use to trigger actions in your scene. These are in the Unity inspector's "Events" foldout.
You can also listen to these events via script, for example:
HoverItemDataCheckboxmyCheckboxItem=/* get the item */;
myCheckboxItem.OnSelectedEvent.AddListener(MyListenerMethod);
I'm just going to ask this since I think the question is relevant for everyone. How do I properly register HoverCast events? I usually just hack around until I find a good enough solution, its usually bad for elegance.
I need to register events such as checkbox checked/unchecked, from the context of any script.
The text was updated successfully, but these errors were encountered: