I have an on-screen keyboard composed of a bunch of buttons. One button - named buttonO has a capital O in its text field. I have another field in the same canvas named Text - and I do this when the scene starts:
GameObject.Find(“Text”).GetComponent().text = “Please enter your email address and your\nspell will be sent to your email.”;
For whatever reason this also places this text into ButtonO’s text field - so ButtonO says “Please” instead of “O”. I tried changing the font, etc. nothing worked.
Finally I changed the field’s name from Text to subTitle and now it works fine.
Anyone have any idea why Untiy got confused with the reference? Probably a bad idea to name text fields Text?