I used assetManager loadRemote to load image resources but it is having some runtime error causing an exception and not running the code attached to ListenerNode below, I can’t debug this problem.
1.Could you please provide the detail exception 2. Could you show me the function f ListenerNode?
export const ListenerNode = (node: Node, callback?: (event: any) => void) => { const isPc = checkPc(); if (isPc) { node.off(NodeEventType.MOUSE_DOWN); node.on(NodeEventType.MOUSE_DOWN, (event: any) => { callback && callback(event); event.propagationStopped = true; }); } else { node.off(NodeEventType.TOUCH_START); node.on(NodeEventType.TOUCH_START, (event: any) => { callback && callback(event); event.propagationStopped = true; });
}};
Thanks for your feedback, in the listenerNode function I check the condition to register the event
Could you please provide the detail exceptions?