File size: 558 Bytes
41791c1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DebugLoggerControl : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
#if UNITY_EDITOR
        Debug.unityLogger.logEnabled = m_logEnabledInEditor;
#else
        Debug.unityLogger.logEnabled = m_logEnabledInBuild;
#endif
    }

#pragma warning disable 0414
    [SerializeField]
    private bool m_logEnabledInEditor = true;
    [SerializeField]
    private bool m_logEnabledInBuild = false;
#pragma warning restore 0414
}