0 votes

I have made a box container with label and during playtime i would like to duplicate this box container x times and change the duplicates label text. I don't know how can I reference the duplicate of that container. The container is named "0" so i tried simply iterating and accesing duplicates by "ParentNode.$(str(index)).get_child().text" but it obviously doesn't work. Is there an easy way to reference the duplicates?

Godot version 3.2.3
in Engine by (14 points)

1 Answer

0 votes

The code is

ParentNode.get_node(str(index)).get_node("label name").text
by (189 points)
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 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.