SetOnComponentTouchedCallback
Subscribe to this event to be notified when an equipment is selected by a quick mouse click (on PC/Mac) or a tap (on touch screen)
Event callback
OnComponentTouchedCallback(id: string)
Parameters
- id (string): The internal id of the target equipment.
Example
Subscribes to this event and then output the target equipment to the console.
SYM3.SetOnComponentTouchedCallback(OnTouched);
function OnTouched(id)
{
console.log("OnTouched: Id=" + id);
}