0 votes

I have a button, when i press that button, an instanced scene spawns on the screen with the name being ("object" + 1). After every press i want to know how many nodes i spawned and how are they named.
How do i know that?

in Engine by (402 points)

1 Answer

0 votes
Best answer

Solved. I made a variable which counts the number of clicks then add to the name that number

by (402 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.