Files
wrplat-godot/addons/aeqw89.RDatCanvasTextureImporterPlugin/RDatCanvasTextureImporterEditorPlugin.cs
T
qwsdcvghyu89 7ba8c1fc6b
Release / Export Game (push) Successful in 1m57s
Added automatic view pixelation. Added more menus.
2026-08-26 18:26:20 +10:00

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