Hi Guys,
I’ve 2 queries regarding AssetLoader
1. I’ve loaded an external obj file using AssetLoader. The obj file contains 20 meshs. But i failed to get the exact name of each mesh in ASSET_COMPLETE event listener, it shows the mesh name as obj0, obj1 & obj2 etc.
For debugging I’ve loaded that obj file in Prefab, it shows the meshs with exact name what i had given in Maya.
My code:
AssetLibrary.load(new URLRequest(’../assets/scene/obj/Scene/scene.obj’), null, “scene”);
AssetLibrary.addEventListener(AssetEvent.ASSET_COMPLETE, onSceneResourceComplete);
private function onSceneResourceComplete(e:AssetEvent):void {
trace(“loaded resource: “+e.asset.name);
}
2. Is it possible to get load progress information in AssetLoader, like bytesLoaded/totalBytesLoaded ?
Thanks in Advance
Dona