Replies: 1 comment
-
It took me a minute to parse, so I'll reiterate it in case that helps.
Thus, adding |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Right now the Script class has no method for creating new instances of the script it points to. Both of the nodes that currently inherit from it - GDScript and CSharpScript - do and I would presume any other derived nodes you add in the future would too. While Godot's duck typing does allow me to just call .new() on the Script node, it would be nice to have this formally added to the Script class so there is no ambiguity about how to create new instances from a script without having to know precisely which type of script you are instancing.
Beta Was this translation helpful? Give feedback.
All reactions