mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Added headers to LogSettings window & component
This commit is contained in:
parent
c7d8c0933d
commit
6c8ff77bc1
@ -6,6 +6,7 @@ namespace Mirror.EditorScripts.Logging
|
||||
{
|
||||
public class LogLevelWindow : EditorWindow
|
||||
{
|
||||
[Header("Log Settings Asset")]
|
||||
[SerializeField] LogSettings settings = null;
|
||||
|
||||
SerializedObject serializedObject;
|
||||
@ -33,14 +34,6 @@ void OnGUI()
|
||||
|
||||
using (new EditorGUILayout.VerticalScope())
|
||||
{
|
||||
using (new EditorGUILayout.VerticalScope())
|
||||
{
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.LabelField(new GUIContent("Mirror Log Levels"), EditorStyles.boldLabel);
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
}
|
||||
|
||||
using (new EditorGUILayout.VerticalScope())
|
||||
{
|
||||
serializedObject.Update();
|
||||
|
@ -27,6 +27,9 @@ public static void DrawLogFactoryDictionary(LogSettings settings)
|
||||
}
|
||||
else
|
||||
{
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.LabelField("Logging Components", EditorStyles.boldLabel);
|
||||
|
||||
foreach (KeyValuePair<string, ILogger> item in LogFactory.loggers)
|
||||
{
|
||||
DrawLoggerField(item);
|
||||
|
@ -10,6 +10,7 @@ namespace Mirror.Logging
|
||||
[HelpURL("https://mirror-networking.com/docs/Components/NetworkLogSettings.html")]
|
||||
public class NetworkLogSettings : MonoBehaviour
|
||||
{
|
||||
[Header("Log Settings Asset")]
|
||||
[SerializeField] internal LogSettings settings;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
|
Loading…
Reference in New Issue
Block a user