Question by
Cyberspark939 · Dec 01, 2015 at 08:51 PM ·
c#unity 5
Unity 5 C# InputField NullReferenceException
public InputField readOut;
static string a = "";
void Update() {
readOut.text = a;
}
I'm not sure what I'm doing wrong here....
Comment
Answer by Dave-Carlile · Dec 01, 2015 at 08:52 PM
readout
and readOut
are not the same thing. Where is readOut
defined? And is it being set to an actual value in the inspector?
Unfortunately, that's a typo in my retyping and not the code itself.
Your answer
Follow this Question
Related Questions
Loot table problems 1 Answer
Rotation script issue? 2 Answers
Game crashes on iPhone 11 0 Answers
Play animation 10 seconds, after play other animation 1 Answer
Need help with Mute Button 1 Answer