InteractableObject¶
This
InteractableObject
struct contains a set of functions for dealing with interactable objects. Before you use this API, attach the yahaha.UI_Interact community component to the object.Functions¶
Provides a callback that will be invoked when the interactor enters the interactive range.
Provides a callback that will be invoked when the interactor leaves the interactive range.
Provides a callback that will be invoked when the interactable object starts being interacted with.
Provides a callback that will be invoked when the interactable object stops being interacted with.
void SetEnable(boolean enable)
Set this interactable object is enable or not.
void SetEnable(boolean enable, number pointId)
Set specified interactable point on this interactable object
with pointId to enable or not.