character editor - ...
 
Notifications
Clear all

[Solved] character editor - 3D element gets "stuck" in view and won't go away


WuLongTi
(@wulongti)
Member Admin
Joined: 7 years ago
Posts: 22
Topic starter  

sometimes an element will get "stuck" and wont' go away.  this is happening when the element is turned on/off/on/off quickly and a new instance of the element is getting added to the scene before the original has been removed.  Since they get loaded w/ the same name the remove function is only toggling the first instance it finds of that name leaving the other one stuck there.

a solid fix may be to load all elements into the scene and set visibility to none and only toggle that instead of unloading and loading the element.  This will result in longer load times but if we put a proper preloader animation into the canvas area we might be able to get away with it.


Quote
WuLongTi
(@wulongti)
Member Admin
Joined: 7 years ago
Posts: 22
Topic starter  

loading all assets initially and setting their visibility to false then toggling the visibility instead of load/unload.
added a preloader that sits in the canvas parent and functions to test when all assets have completed loading.

I'm finding that once loaded everything is really responsive and goes on/off/colored really quickly 😀


ReplyQuote
Share: