This commit is contained in:
CortexCore
2023-06-19 00:41:44 +08:00
parent 073996ce6c
commit bf122c66dc
48 changed files with 683 additions and 84 deletions

View File

@@ -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