Hello there.
I use Unity 2019.1.0f2
I create GameObject script with public GameObject authPanel.
But when i move “AuthPanel” from hierarchy panel to “Auth panel” in inspector - nothing’s happening.


Hello there.
I use Unity 2019.1.0f2
I create GameObject script with public GameObject authPanel.
But when i move “AuthPanel” from hierarchy panel to “Auth panel” in inspector - nothing’s happening.


Why would you name your script GameObject? Don’t name classes the same as existing Unity types. I’m sure the AuthPanel field of your script is the wrong GameObject type. You probably have a warning in Visual Studio that your declaration of this variable is ambiguous.
Rename your GameObject script and the name of the class to something not already used by Unity.