Tile - YEntity - Set Custom Interaction – Ylands
Jump to navigation
Jump to search
Set Custom Interaction(Entity, Hint, Id, Override default)
setCustomInteraction(hint: any, interactionId: any, overridesDefault: boolean): void;
Parameters
hint
interactionId
overridesDefault
Availability
Description
Allows to set custom interaction onto an entity. Hint - text displayed over the entity. Id - identifier used to distinguish interactions (optional). Override default - whenever the interaction will be added to already existing interaction. Work only for charters.
Notes
- Custom interaction will trigger On Interact.
- Custom interaction will trigger appropriate Event Listener.