Hi All,
Is there a way to change/update the material of any loader3d at game loop?
In all examples they are set during initializations ( onAssetLoader).
Changing material or texture of a Loader3DSoftware: Away3D 4.x |
||
andreahmed, Member
Posted: 10 October 2013 12:14 PM Total Posts: 62 Hi All, Is there a way to change/update the material of any loader3d at game loop? In all examples they are set during initializations ( onAssetLoader). |
||
andreahmed, Member
Posted: 10 October 2013 12:22 PM Total Posts: 62 [ # 1 ] Fixed here is the solution
TweenMax.delayedCall(4, onFinish); The delay because the scene is not fully loaded with the models. |
||
Mr Margaret Scratcher, Sr. Member
Posted: 31 March 2014 08:40 PM Total Posts: 344 [ # 2 ] A better way to do it would be something like this:
fileLoader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, addOBJ); |