Hello i am using the MRTK 2.7.3 and I am trying the read the value from a UI_KeyboardInputField object but seems something is wrong on my code
using Microsoft.MixedReality.Toolkit.Experimental.UI;
public void onSubmit()
{
GameObject username = GameObject.Find("Username");
UI_KeyboardInputField inputUsername = username.GetComponent<UI_KeyboardInputField>();
Debug.Log("username" + inputUsername.Text); <<<ERROR
}
'UI_KeyboardInputField' does not contain a definition for 'Text' and no accessible extension method 'Text' accepting a first argument of type 'UI_KeyboardInputField' could be found (are you missing a using directive or an assembly reference?)
Maybe my approach is wrong how can i get the text value from this field ?
thanks