This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
#if TOOLS
|
||||
using Godot;
|
||||
|
||||
[Tool]
|
||||
public partial class RDatCanvasTextureImporterEditorPlugin : EditorPlugin {
|
||||
private RDatCanvasTextureImporter _importer;
|
||||
public override void _EnterTree() {
|
||||
// Initialization of the plugin goes here.
|
||||
var script = ResourceLoader.Load<CSharpScript>("res://addons/aeqw89.RDatCanvasTextureImporterPlugin/RDatCanvasTextureImporter.cs").New();
|
||||
_importer = script.As<RDatCanvasTextureImporter>();
|
||||
AddImportPlugin(_importer);
|
||||
}
|
||||
|
||||
public override void _ExitTree() {
|
||||
// Clean-up of the plugin goes here.
|
||||
RemoveImportPlugin(_importer);
|
||||
_importer = null;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user