Editor warning for non-Node Autoload scripts #8720
archiebaldry
started this conversation in
Scripting
Replies: 2 comments
-
This suggestion may be better suited in the Editor category, but I'll leave it here for now. Please feel free to move it if required! :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
This may be intrinsically solved by godotengine/godot#81886 and been already proposed in #7710 , because all scene nodes inherit from Node. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently ran into an issue where my Autoload script wasn't working as expected. This was because I had made the script extend from the
Object
class and not theNode
class (or a derivative ofNode
). I think the editor should give some kind of warning when trying to use a non-Node script as an Autoload. Here's a relevant Reddit post on r/godot. Please forgive me if I have misunderstood how Autoload works!Beta Was this translation helpful? Give feedback.
All reactions