Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

Logger.logEnabled

マニュアルに切り替える
public bool logEnabled;

説明

実行時の切替として [ON/OFF] のログの結果をデバッグします。

using UnityEngine;
using System.Collections;

public class MyGameClass : MonoBehaviour { private static ILogger logger = Debug.logger; private static string kTAG = "MyGameTag";

void Start() { logger.logEnabled = Debug.isDebugBuild;

logger.Log(kTAG, "This log will be displayed only in debug build"); } }