0 votes
extends Node2D



var scene = preload("res://tile.tscn")
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
var scene_instance

# Called when the node enters the scene tree for the first time.
func _ready():

    for i in 729:
        scene_instance=scene.instance()
        $tileContain/GridContainer.add_child(scene_instance)

~~~

Godot version 3.3.2
in Engine by (54 points)

1 Answer

0 votes

It is adding those children, You can look them up in Remote Tab of editor, when project is running. I don't see You setting any properties of those tiles, are You sure their size flags enable them to be visible in grid container ? You should have some minimal size, expand or fill, there should be some icons too. Try adding tiles to your gridcontainer in the editor, if it also won't work, than it means there is a problem with your GUI settings, not a code.

by (6,513 points)

I can directly add them. They don't show up the remote tab when running. This has a lnk to the entire projects
https://godotforums.org/discussion/comment/55279#Comment_55279

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.