调整了模板
This commit is contained in:
23
addons/BITPlugins/ReferencePlugins.cs
Normal file
23
addons/BITPlugins/ReferencePlugins.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
Reference in New Issue
Block a user