mirror of
https://github.com/smyalygames/monopoly.git
synced 2025-05-18 14:24:12 +02:00
25 lines
588 B
C#
25 lines
588 B
C#
using Mirror.Logging;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Mirror.EditorScripts.Logging
|
|
{
|
|
[CustomEditor(typeof(LogSettings))]
|
|
public class LogSettingsEditor : Editor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
CurrentScriptField();
|
|
|
|
LogLevelsGUI.DrawLogFactoryDictionary(target as LogSettings);
|
|
}
|
|
|
|
public void CurrentScriptField()
|
|
{
|
|
GUI.enabled = false;
|
|
EditorGUILayout.PropertyField(serializedObject.FindProperty("m_Script"));
|
|
GUI.enabled = true;
|
|
}
|
|
}
|
|
}
|