@ustk said in SlotFX add rearrange Method along with swap:
Because the ID is reset at init, and "getCurrentEffect()" will return the same thing.
If you restore the scripts using a Base64 encoded state, it will retain the ID (even if the ID is actually stored in the state).
So if you have only Script FX, just don't use setEffect but ScriptFX.restoreState with predefined states.