top of page

TOSHICHAN
Unityでスクリプト&簡単な実装サイト
テキスト変更
public Text Test;
void Update () {
//スペースキーが押されたら
if (Input.GetKeyDown ("space")) {
//Helloと表示
Test.text = "Hello";
}
}
※using UnityEngine.UI;を忘れずに!!
bottom of page