JimmyCushnie / JECS

Jimmy's Epic Config System
Do What The F*ck You Want To Public License
154 stars 16 forks source link

Unity version should have an OnFileReloaded event that is only fired on the main thread #39

Open JimmyCushnie opened 2 years ago

JimmyCushnie commented 2 years ago

When using the OnFileReloaded callback in Unity apps, I pretty much always have to jump back to the main thread, since Unity doesn't let you do much from other threads. To save some code, SUCC should include a dispatcher, and there should be an additional event that dispatches the callback on the main thread automatically.