#Unity Domain Reload (Should I do it or no?)

1 messages · Page 1 of 1 (latest)

silk anchor
#

Everytime I enter play mode, a domain reload happens, I want to know if disabling it is a bad thing?

#

Since if it is turned off, unity playmode runs nearly instantly

open saddle
#

It's not bad, but you have to be aware of what it implies.

For example, static fields and events will not reset.

#

So as long as you're managing that, it's great. Super fast play times.

silk anchor
#

okay so if I'm making a super simple project i won't be using events

silk anchor
#

what do you mean by static fields?

#

like fields I've set in the editor and won't be changed?

#

oh nvm i read the docs

open saddle
#

Static variables essentially. They'll keep their last values, so make sure you give them a start value at runtime.

silk anchor
#

gotcha