In some cases layer order doesn't update correctly.
My game has a command parser system, in a main fastloop it will read script until it reaches some special ones. Then it will come into phase 2, do the transitions defined in commands that parsed in previous phase.
If current line is a command, it will call another fastloop to iterate all commands then execute the correct one, just like fastloop itself. If objects are created in this routine, an update flag will be set, and when it reaches the special line, engine will stop parsing, call the arrange routine, object order will be updated here.
the order of 过渡元件 ( transition mask object ) didn't updated:
The issue is, in some cases, the order didn't update, aka nothing happens, causes weird bugs.
I can't isolate it in another mfa, everything works fine then, so maybe not something like I'm coding incorrectly (both event and extensin coding), but a bug deep buried in fusion runtime which cannot be triggered easily.
If any stuff has time to check this, please post a reply then I can send the mfa via PM. Thanks in advance.