Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | rogeriodec |
In this code:
extends Spatial
var cilindro = preload("res://Cilindro.tscn")
var c = cilindro.instance()
func _ready():
var g = $Grupo_Cilindros
g.add_child(c)
print (g.get_children())
I get the result: [[RigidBody:1133]]
Changing the ‘add_child’ line to g.add_child(c, true)
I also get [[RigidBody:1133]]
.
What am I missing?