displaying Array as text? error CS0029: Cannot implicitly convert type `string' to `UnityEngine.UI.Text'

error CS0029: Cannot implicitly convert type string' to UnityEngine.UI.Text’
Awesome So I’ve gotten my Information from my mysql database from php acho to unity, Having troble applying the array to text so it displays on the screen…

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class LoginRegister : MonoBehaviour {

	public string UserLoginURL = "http:///loggin";
	public string UserRegiesterURL = "http:///register";
	public string Username = "";
	public string Password = "";
	public bool Login = false;

	public Text XPText;
	public Image XPbar;
	public Text GoldText;
	public Text LevelText;
	public Text UsernameText;

	public GameObject Logedin;


	//------------------------------------------------------------------------------------

	void OnGUI()
	{
		Username = GUILayout.TextField (Username);
		Password = GUILayout.TextField (Password);
		if (GUILayout.Button ("Log in")) {
			StartCoroutine(LoginUser());

		}
	}

	//------------------------------------------------------------------------------------

	IEnumerator LoginUser(string User, string Pass ) {
		WWW Login = new WWW (UserLoginURL + "Username" + User + "Password" + Pass);
		yield return Login;
		if (Login.error == null) {
			// display resaults:		???
			UsernameText = Login.text.Split(","[0]);
			GoldText = Login.text.Split(","[1]);
			XPText = Login.text.Split(","[2]);
			LevelText = Login.text.Split(","[3]);
			}
		}
	}
	//------------------------------------------------------------------------------------

Hello :),
Text is a UI Text, not a string… In order to change the text of that ui element, you have to change e.g. UsernameText.text if I’m not mistaking :slight_smile: