Through code, I wish to instance a scene
In my main scene, game.tscsn, I'm using this code...
func _ready():
# create an instance of trainWheel
# 1. Preload it - now, it's currently a packed scene
var scene = preload("res://trainWheel.tscn")
# step 2, turn the packed scene into a node
var instance = scene.instance()
# step 3, put our node into the tree where we need it
add_child(instance)
Is this correct? Should this node now be visible in my scene inspector?