Problem with GetComponent<InputField> ()

Hi,

This line

public GameObject inputFieldGo;
InputField editableString;
inputFieldGo = GameObject.Find("User_Input");
editableString = inputFieldGo.GetComponent<InputField>();

Return

NullReferenceException: Object reference not set to an instance of an object

I don’t know why !! the version used is 5.1.2f1. Is there a problem with this version ?

are you sure that inputFieldGo is != NULL ?

inputFieldGo isn’t NULL but editableString is NULL

I tried your script with Unity 5.12p3 and it works fine. You can see my Hierarchy in the screenshot attached.