Created
August 25, 2022 09:43
-
-
Save Fastzargon/4434f319389863882edb0cd02fede8c3 to your computer and use it in GitHub Desktop.
MethodOneMain
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() { | |
#if UNITY_EDITOR | |
Debug.unityLogger.logEnabled = debugOn; | |
#else | |
Debug.unityLogger.logEnabled != debugOn; | |
#endif | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment