cyclopsLevelBuilder icon indicating copy to clipboard operation
cyclopsLevelBuilder copied to clipboard

Add autoload automatically when enabling the plugin

Open darkhog opened this issue 1 year ago • 4 comments

EditorPlugin has this nifty method for adding an autoload automatically without the user's intervention: https://docs.godotengine.org/en/stable/classes/class_editorplugin.html#class-editorplugin-method-add-autoload-singleton

darkhog avatar May 19 '24 10:05 darkhog

That is being done. Godot is ignoring it for reasons I do not understand.

blackears avatar May 20 '24 12:05 blackears

Oh. May I take a look? Which file tries to add the autoload automatically? Perhaps I could fix it, just need to know how do you make PRs.

darkhog avatar Jun 13 '24 07:06 darkhog

It's in res://addons/cyclops_level_builder/cyclops_level_builder.gd line 109. It's one of the first things the addon does when it loads.

blackears avatar Jun 13 '24 09:06 blackears

It works though. grafik

Just cloned main, started and restarted and the autoload was there.

KoB-Kirito avatar Sep 03 '24 18:09 KoB-Kirito