Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

[2021.2] Settings have no affect before first recompilation #12

Open
neon-age opened this issue Jul 13, 2021 · 0 comments
Open

[2021.2] Settings have no affect before first recompilation #12

neon-age opened this issue Jul 13, 2021 · 0 comments

Comments

@neon-age
Copy link
Owner

Found by @Thane5 in 2021.2b

After Editor launch, most settings changes are getting ignored (but UI events and serialization work properly).
Triggering recompilation via any script reimport fixes it.

The cause
prefs instance gets replaced after static initialization, so all classes are referencing the wrong non changing version
image
(should be property, => instead of =)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant