timcassell / ProtoPromise

Robust and efficient library for management of asynchronous operations in C#/.Net.
MIT License
147 stars 13 forks source link

PromiseBehaviour warning when not reloading domain #204

Closed drew-512 closed 1 year ago

drew-512 commented 1 year ago

Hi,

When I enable Settings > Editor > Enter Play Mode, I get this msg: There can only be one instance of PromiseBehaviour. Destroying new instance

I suspect this is expected behavior given the nature of the setting but worth raising for those who are OCD about warnings.

timcassell commented 1 year ago

More context: https://github.com/timcassell/ProtoPromise/commit/bfaa23ba1f9948e5b62b3532e5c1a69d217a5842#commitcomment-107851916

timcassell commented 1 year ago

Looks like disabling domain reloads is the cause. That's a new feature I wasn't aware of. https://docs.unity3d.com/Manual/ConfigurableEnterPlayMode.html