[SOLVED]The ERROR for loading two model .json files
09 July 2017 19:23
Hi, in my project, I need to load two .json files in the order. When I have loaded second file, the model is visual in the scene, but I cannot get it by
, the error is "print.js:73 B4W ERROR: get object 02_01walk: not found".
But when I loaded the file first, the code is successful.
So , how to load multiple model .json files for different times.
character=m_scs.get_object_by_name("02_01walk");
But when I loaded the file first, the code is successful.
So , how to load multiple model .json files for different times.
10 July 2017 04:56
If you attach your JS code, I can have a look at it. Maybe you can make a comment in your code like //first object to load. //second object to load.
10 July 2017 05:32
10 July 2017 09:25
Dear Will, I found the same question in link, and I solve the problem, thanks for your attention.
To get the character, the right code is here.
To get the character, the right code is here.
character=m_scs.get_object_by_name("02_01walk",modelID);