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 am looking for a way to attach an event handler to an externally referenced resource such as a mesh or rather to its parent group.
Currently whenever I try to access information of dynamically added external resources I get an error (in my case calling getBoundingBox on the group containing an external mesh).
Is there a way to bind an event handler to a group containing external resources that gets called as soon as all external resources are loaded and available?
The text was updated successfully, but these errors were encountered:
What we plan to implement is at least an onload event handler for <data> elements as well as all sink elements (such as <mesh> and <shader>, combined with a loaded property to check the current loading state.
This matches the interface of <img>.
An onload event for <group>, while convenient, will probably not be implemented, as the same behavior can be rather easily simulated with JavaScript. So you can implement a small tool library in JavaScript sending a notification if a group has been loaded.
In any way, we will make sure that onload events for <data> and sink nodes will be properly implemented for the next release.
I am looking for a way to attach an event handler to an externally referenced resource such as a mesh or rather to its parent group.
Currently whenever I try to access information of dynamically added external resources I get an error (in my case calling getBoundingBox on the group containing an external mesh).
Is there a way to bind an event handler to a group containing external resources that gets called as soon as all external resources are loaded and available?
The text was updated successfully, but these errors were encountered: