In my project I am going through old code converting our networking solution from Tnet to Photon.
Up until just now these lines did not throw an error and worked.
login = displayInst.gameObject.GetChild("LoginScreen");
normal = displayInst.gameObject.GetChild("NormalScreen");
After making my networking changes I started getting an error saying :
Type UnityEngine.GameObject' does not contain a definition for GetChild' and no extension method
GetChild of type UnityEngine.GameObject could be found (are you missing a using directive or an assembly reference?)
I have not made any changes to those lines. After some research all I’m seeing the closest thing could be gameObject.Transform.GetChild(index);
Opened the script on another computer without any of the networking changes and MonoDevelop would still AutoComplete gameObject.GetChild(string);
Clearly it’s not a thing now, but was it maybe a few updates ago? Why would my script compile and run just fine before making our networking changes? Working around the issue but still very confused as to what is going on…
attached a screenshot just to prove it