I have problem with duplicate sceneobject after load scene again.
I have use clearScene and then loadScene, but still sometimes get note of duplicate sceneobjects?
Is there 100% proof solution to delete all sceneobjects before load scene again?
Sample code:
wade.clearScene('Scene1.wsc');
wade.loadScene('Scene1.wsc',false, false, true);
Clear scene not work always
1 Comment
Solved!
That clearScene not work right, if it is in the setTimeout function(), like:
setTimeout(function()
{
wade.clearScene('scene1.wsc');
wade.loadScene('scene1.wsc',false, false, true);
},3000);
Post a reply

Add Attachment
Submit Reply
Login to Reply