I just was working on a script in my game, and had Unity freeze up on me. When I re-started it, all of my public variables were empty. Every one of them…kind of a big deal for me to fix, it is going to require re-visiting things I have been done with for months.
I have back ups, so its not a show stopper, but jeez, I can’t help but wonder if anyone else has had this happen.
This is turning into a time consuming thing to get back to where I was before this crash. I wish I knew how this happened so I don’t repeat it.
Has anyone had ALL of their public variables suddenly become empty?
By ‘empty’, do you mean reset to their default values? (I haven’t seen anything like this, but that does sound inconvenient.)
Yea, for example, I have arrays that are populated with game objects, and now it just says “none” for each of them in the inspector. I have a kind of complex track system that was made by passing a spline through gameobjects all over my 3D game, and all of those objects now say “none”, meaning I no longer have a track…every public variable in the game in the inspector now says “none”.
I have back ups (not as recent as they should be, I just re-learned my lesson about good backing up), but man, this is kind of a bummer.
The only time ive ever seen that happen was the one time i tried to delete the library folder in the project directory. If that whole folder is intact (the folder in the same directory as your assets folder) then i’m not sure what happened.