Files
Deroc_Virtual_3D/Assets/FPS/Scripts/Editor/UITableEditor.cs
T
Alex38Lyon 878ea46cac update
2025-06-03 12:00:47 +02:00

24 lines
523 B
C#

using Unity.FPS.UI;
using UnityEditor;
using UnityEngine;
namespace Unity.FPS.EditorExt
{
// The Editor for the UITable component to add an Update button
[CustomEditor(typeof(UITable), true)]
public class UITableEditor : Editor
{
public override void OnInspectorGUI()
{
UITable myTarget = (UITable)target;
DrawDefaultInspector();
if (GUILayout.Button("Update"))
{
myTarget.UpdateTable(null);
}
}
}
}