britzl / gooey

Defold GUI system
MIT License
150 stars 22 forks source link

Not detecting a reload in Defold 1.2.151 #36

Closed ask-a-lie closed 5 years ago

ask-a-lie commented 5 years ago

I face to problem that it could not detect a reload in core.instance function. You can reproduce the problem by scene reloading in example project.

I think it is because __dm_script_instance__ has been removed in Defold 1.2.151. ref: Defold Forum

https://github.com/britzl/gooey/blob/870512152b3da4fc6764f1d5ed397ae0dd0bee8b/gooey/internal/core.lua#L110-L117

Currently, I added temporary reset function in my local and call this for detecting a reload of gui script.