Content-Length: 18135 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Logger-logEnabled.html
To runtime toggle debug logging [ON/OFF].
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"); } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/Logger-logEnabled.html
Alternative Proxies: