Harald wroteHm, it's expected to work with both Reload Scene
and Reload Domain
disabled.
What kind of problem did you encounter?
Which Unity version are you using?
Really sorry about missing this! I thought I'd get an email notification or something. Basically, after compiling from a script change, when I press play all references to any SkeletonAnimation are going null, and all my Spine characters are invisible. But you know what, after entering play mode a second time after recompile everything is corrected. They get get messed up again whenever I compile, and fix themselves by the second play. This makes me believe its possibly an execution order issue, where my scripts are initializing in some way before spine refreshes from the compile (perhaps it happens on start), and by the time I run it a second time its already refreshed from the first play. Now that I know Spine is designed to work without domain and scene reload, I will investigate this execution order further, and report back 🙂. My Unity version is 2019.4.5f1
Okay so to anyone else who's having initialization issues going into play mode after compiling, I fixed mine by calling SkeletonAnimation.Initialize(true) before I do anything to the skeleton. They initialize themselves at some point but I wasn't able to find out where, and my scripts were trying to do stuff to them in start and awake. I tried adjusting the script execution order to make spine scripts go first but to no avail. Anyway calling initialize manually worked for me.