Exemple #1
0
    public static void UpdateInputField(InputField inputField, int fileId)
    {
        if (inputField.text.Length > 0)
        {
            return;             // do not write if already input by user or input by this function
        }
        string dirname = SelectButtonControl.GetSelectedName(fileId);

        if (dirname.Length == 0)
        {
            return;
        }
        inputField.text = dirname;
    }
    public Text myText;     // should be related to TextFileName:Text

    void Start()
    {
        myText.text = SelectButtonControl.GetSelectedName(fileId);
        ScrollScript.UpdateInputField(dirNameInputField, fileId);
    }