Model Settings in the scenario are not preloaded. How do I get the loaded callback function
How do I set the loaded callback function
Model Settings in the scenario are not preloaded. How do I get the loaded callback function
How do I set the loaded callback function
Hi @chuxinhao,
You can subscribe to the load event for that asset using this method:
myAsset.ready(function() {
// asset is ready
}.bind(this));
myAsset is just a name for a variable that reference the asset you are asking on your initial post.
There are plenty ways to get that, one is using the asset registry and the asset name:
var myAsset = this.app.assets.find('TheNameOfYourAsset');
myAsset.ready(function() {
// asset is ready
}.bind(this));