18 lines
485 B
C#
18 lines
485 B
C#
using Godot;
|
|
|
|
namespace BITKit;
|
|
|
|
#if TOOLS
|
|
[Tool]
|
|
public partial class RegistryPlugin : EditorPlugin
|
|
{
|
|
public override void _EnterTree()
|
|
{
|
|
// var type = typeof(StringResource);
|
|
// const string classPath = "res://Artists/Scripts/Resource/StringResource.cs";
|
|
// var script = GD.Load<Script>(classPath);
|
|
// GD.Print($"已加载{script.ResourceName??script.ToString()}");
|
|
// AddCustomType(type.Name, "Resource", script, null);
|
|
}
|
|
}
|
|
#endif |