Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | cloa513 |
E 0:00:00.538 get_node: (Node not found: “tileContain/GridContainer” (relative to “/root/Main Scene/Node2D”).)
<C++ Error> Condition “!node” is true. Returned: __null
<C++ Source> scene/main/node.cpp:1371 @ get_node()
Main Scene.gd:16 @ _ready()
tileContainer is loaded on Inspector
extends Node2D
var scene = preload(“res://tile.tscn”)
Declare member variables here. Examples:
var a = 2
var b = “text”
Called when the node enters the scene tree for the first time.
func _ready():
for i in 729:
var scene_instance=scene.instance()
$tileContain/GridContainer.add_child(scene_instance)