(Context: All code is in C#)
So I’m working with a small team on this fan project. Some time ago, our lead programmer just wanted to see how the project would run as a final distributable build (just for testing). Well, when trying to do this, he encountered the error message:
“you are referencing an object in a public property of a script that was generated dynamically in the editor. This happens easily on scripts that can run both in editor and at runtime.”
He says that when he tries to instantiate a prefab and then getcomponent on said instance, he’s met with the above error. The programmers have worked tirelessly and have reached out to outside teams to try to find a solution to the issue, but we haven’t found anything. I figured all I can do at this point is reach out to the community here and hope someone really in-the-know knows what is happening here.
He’s also said that the soon-to-be Entity Component System upgrade might help with the issue if we just copy over our scripts with a few changes, but we could use a solution with what we have now.