I have tried many ways, but i could not change the input field value by using script.
can you help me?
var ifield :UnityEngine.UI.InputField;
function Awake()
{
ifield.value = ""+85;
}
I have tried many ways, but i could not change the input field value by using script.
can you help me?
var ifield :UnityEngine.UI.InputField;
function Awake()
{
ifield.value = ""+85;
}
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class ChangeInputField : MonoBehaviour {
public InputField ifield = null;
// Use this for initialization
void Awake () {
ifield.text = "88";
}
}
i just missed it.
thank you jordi!