C#

Unity5あれこれ

Sceneに配置したTextの中身をスクリプトで変更する(uGUI対応) 1. 空のGameObjectを追加 2. 以下のような内容のスクリプトを作成し、UnityのEditor上で1のGameObjectにアタッチする public Text hogeText; void Start() { debugText.text = "hage"; } 3. Unit…

コルーチン関連

処理内容 ボタンを表示 ボタンを押すと指定したSceneに遷移 裏で、指定したURLに接続 ソースコード using UnityEngine; using System.Collections; public class Title : MonoBehaviour { void OnGUI () { if (GUI.Button(new Rect(Screen.width/2 -100 , 10…