I have an input field (for a chat), and when enable the panel that the Input Field is in, I try to use InputField.ActivateInputField(); so that it can be immediately typed in to.
That line returns this error:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UI.InputField.ActivateInputFieldInternal () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/InputField.cs:1881)
UnityEngine.UI.InputField.LateUpdate () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/InputField.cs:519)
For some weird reason it worked the first time, then just quit working.
I’m using Unity 5.0.0p3
EDIT: I also just installed Unity 5.0.1f1 and it still gives me the same error.