【Unity/UI】Debug.Logでコンソール出力

UnityのDebug.Logでコンソール出力する方法について入門者向けにソースコード付きでまとめました。

## Debug.Logでコンソール出力

Unityでは、Debug.Logメソッドでコンソール出力ができます。

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BallShooter : MonoBehaviour {
    float yMax = 0;
    void Start () {

    }

    void FixedUpdate(){
        Debug.Log("にゃんぱすー" );
    }

    void Update () {

    }
}
関連記事
参考 【Unity入門】ゲームプログラミング編【Unity入門】物理シミュレーション編【C#入門】サンプル集
Unity
スポンサーリンク

コメント