readme
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#if TOOLS
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
namespace BITKit;
|
||||
[Tool]
|
||||
|
@@ -8,11 +8,11 @@ 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);
|
||||
// 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
|
Reference in New Issue
Block a user