top of page

テキスト変更

    public Text Test;

    void Update () {
        //スペースキーが押されたら
        if (Input.GetKeyDown ("space")) {
            //Helloと表示
            Test.text = "Hello";
        }
    }

 

※using UnityEngine.UI;を忘れずに!!

bottom of page