Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Variable Resetter shouldn't trigger due to script hot reload #430

Open
lgarczyn opened this issue Sep 13, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@lgarczyn
Copy link

lgarczyn commented Sep 13, 2023

Variable Resetter is, if I understand correctly, mostly meant to ensure that specific vars are reset on scene load

However, since it relies on OnEnable solely, it triggers during script hot reload as well.

Because of this, all enabled variable resetter will trigger on script hot reload, making the Unity scene recovery a bit useless.

It would be pretty nice to add a toggle in the component, to make it ignore any OnEnable calls caused by a scene load, or to simply make trigger on Awake instead.

@lgarczyn lgarczyn added the bug Something isn't working label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant