Found out what was going wrong.
I had a public RectTransform which in the editor I assigned the child ‘Text’, not the actual input field because in previous betas there was no direct access to the .text property.
I changed it to the actual InputField object and accessing it through there works properly
When I try this, I get the password instead of a lot of asterix. Are you sure you are not overwriting it somewhere?
To test this I have a empty Scene with a Canvas and A child. This child has a RectTransform, Canvas Renderer, Text and a InputField component.
Then I also added the following script:
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Test : MonoBehaviour
{
void Update()
{
Debug.Log(GetComponent<InputField>().text + " : " + GetComponent<Text>().text);
}
}