Skip to content

Instantly share code, notes, and snippets.

@tsubaki tsubaki/LogTest.cs
Last active Aug 7, 2018

Embed
What would you like to do?
ログの出力を停止する
using UnityEngine;
using System.Collections;
public class LogTest : MonoBehaviour
{
// ゲーム開始前に呼び出す
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
static void Init () {
Debug.logger.logEnabled = false; // ←ログを止める
}
void Update ()
{
Debug.Log ("hoge"); // <- ログは出力されない
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.