You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a @tool script, it's not possible to access LogDuck as an autloaded script because it's missing the @tool decorator, showing a null error.
The text was updated successfully, but these errors were encountered:
Good catch! I didn't consider that someone would want to use it in an editor script.
It's a bit of an odd workaround, but I found a way to load the singleton in the editor like this: godotengine/godot#4236 (comment)
The only issue is that get_stack(), if called in the editor, does not return anything. I still need to figure out how to read the classname from scripts in the editor or get the path of the script. Maybe someone else has an idea how to make that work for editor scripts!
When creating a
@tool
script, it's not possible to accessLogDuck
as an autloaded script because it's missing the@tool
decorator, showing a null error.The text was updated successfully, but these errors were encountered: