ArabDesert/Assets/Editor/x64/Bakery/scripts/ftLightmapsStorageInspector.cs

30 lines
679 B
C#
Raw Normal View History

2024-05-25 09:10:35 +03:00
using UnityEditor;
using UnityEngine;
using System;
using System.IO;
using System.Collections.Generic;
using System.Runtime.InteropServices;
[CustomEditor(typeof(ftLightmapsStorage))]
public class ftLightmapsStorageInspector : UnityEditor.Editor
{
static bool showDebug = false;
public override void OnInspectorGUI() {
EditorGUILayout.LabelField("This object stores Bakery lightmapping data");
if (showDebug)
{
if (GUILayout.Button("Hide debug info")) showDebug = false;
DrawDefaultInspector();
}
else
{
if (GUILayout.Button("Show debug info")) showDebug = true;
}
}
}