Maybe I didn't understand your post above mine. It sounds like you're saying PackedScene is in fact already a class instance which makes sense. But why would that class instance have a .new
method and if it did what would be the purpose?
If an instance of PackedScene doesn't have a .new
method then disregard. My confusion makes sense because when I preload a .tscn
file in order to instance it, I didn't expect the preload method to generate an instance of anything.
You can't do that with scripts for example. So it must be some magic going on in the background of the gdscript language.