iFactory.Godot/addons/BITPlugins/ReferencePlugins.cs

24 lines
461 B
C#
Raw Normal View History

2023-07-17 04:10:14 +08:00
using Godot;
using System;
#if TOOLS
namespace BITKit;
[Tool]
public partial class ReferencePlugins : EditorPlugin
{
private InspectorPlugins _plugin;
private PackedScene _containerTemplate = GD.Load<PackedScene>("res://addons/BITPlugins/ReferenceContainer.tscn");
public override void _EnterTree()
{
_plugin = new InspectorPlugins();
AddInspectorPlugin(_plugin);
}
public override void _ExitTree()
{
RemoveInspectorPlugin(_plugin);
}
}
#endif