0
Answered

Singleton.OnRuntimeStartSingleton() is called?

アイオウプラス開発 5 months ago in Game Creator updated by Marti (Lead Developer) 5 months ago 1

Hi,
Thank you for the great Asset!

I'm trying with Domain Reload Disable.
https://docs.unity3d.com/Manual/DomainReloading.html

I noticed.Singleton.OnRuntimeStartSingleton() may not have been called.

And,
InitializeOnLoad() and Singleton.OnRuntimeStartSingleton() is the same priority.
(RuntimeInitializeLoadType.BeforeSceneLoad)
Can't decide which will come first.

I would be very happy if GameCreator would support Disabling Domain Reloading.
Thank you very much.

Unity version:
2019.3
Game Creator version:
1.1.6
GOOD, I'M SATISFIED
Satisfaction mark by アイオウプラス開発 5 months ago
+1
Answered

Hi;

Thanks for bringing this up. It's something that has come up but we haven't been able to properly test this. Domain Reload also resets al static variables, which are heavily used in Game Creator, so this is going to have a great impact, not only on static classes, but other places too.

Disabling domain reloading is a very new feature and is flagged as experimental. We do plan on supporting it, since it has many benefits in terms of how fast you enter playmode.