This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Example : MonoBehaviour { | |
private void Awake() { | |
DebuggerSetup(); | |
} | |
private void DebuggerSetup() { | |
Debug.unityLogger.logEnabled = Debug.isDebugBuild; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void DebuggerSetup() { | |
Debug.unityLogger.logEnabled = Debug.isDebugBuild; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Example : MonoBehaviour { | |
private bool debugOn = true; | |
private void Awake() { | |
DebuggerSetup(); | |
} | |
private void DebuggerSetup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void Awake() { | |
DebuggerSetup(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void DebuggerSetup() { | |
#if UNITY_EDITOR | |
Debug.unityLogger.logEnabled = debugOn; | |
#else | |
Debug.unityLogger.logEnabled != debugOn; | |
#endif | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string logKey = "appsLaba"; | |
private string message = "\n App is launched!"; | |
private void Start() { | |
Debug.Log(logKey + message); | |
} |