Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | soulldev |
I have a problem when I want to instance a node from the same scene, I made a PackedScene var that point to the same scene type, I want to recursive the instantiation so each same could instance another scene of itself:
var s= s.instance()
add_child(s)
but I get the error:
Invalid call. Nonexistent function ‘instance’ in base ‘Nil’.
You probably wanna remove the var
part if you wanna it to be recursive.
Dlean Jeans | 2019-07-02 12:48