Loading Breaks Public References
Posted: Fri Nov 08, 2024 10:01 pm
Whenever I load (currently with SaveSystemMethods) I am getting:
On public references that are visible in the inspector. This only seems to happen on functions that are called through Lua.RegisterFunction.
If I do a:
before trying to use it, everything proceeds just fine. Problem is, I have many other game objects that need to maintain that reference.
Thanks in advance.
Code: Select all
MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
If I do a:
Code: Select all
player = GameObject.Find("Player")
Thanks in advance.