0 votes

Hye eveyone,
What is the meaning of "readableuniquename" in "void addchild ( Node node , bool readableunique_name=false )"? Do you have an example?

Good day,

Godot version V 3.5
in Engine by (87 points)

1 Answer

+3 votes
Best answer

When you add a node to the scene tree, it must have a unique name within its direct parent. By default, the engine creates that name using the instanced node type, an incremented number, and some @ signs. You can see such names in the Remote scene tree when your game is running.

If you set the legible_unique_name arg to true in the add_child() call, the automatically generated names are a little more human-friendly (they don't contain the @ symbols).

If you add a few instanced nodes with that set to true and a few with it set to false, you'll see the difference in the naming convention in the Remote scene tree.

Generally, you don't use those names anyway, so either way is probably fine.

by (21,692 points)
selected by

Thank you for you answer.

Good Day

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 [email protected] with your username.