ドキュメント

Unity Engine

Unity Engine

logEnabled

To runtime toggle debug logging [ON/OFF].
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool logEnabled { get; set; }

Examples

using UnityEngine;using System.Collections;public class MyGameClass : MonoBehaviour{ private static ILogger logger = Debug.unityLogger; private static string kTAG = "MyGameTag"; void Start() { logger.logEnabled = Debug.isDebugBuild; logger.Log(kTAG, "This log will be displayed only in debug build"); }}