20 lines
659 B
C#
20 lines
659 B
C#
#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 |