Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@ character is dropped when setting the name property of Nodes #47392

Closed
dilettante54 opened this issue Mar 26, 2021 · 1 comment
Closed

@ character is dropped when setting the name property of Nodes #47392

dilettante54 opened this issue Mar 26, 2021 · 1 comment

Comments

@dilettante54
Copy link

Godot version:
3.2.3

OS/device including version:
Windows 10

Issue description:
If you add a new node via add_child(), unless legible_unique_name is true, the new node has a few @ characters in the name.
If you then store the name property of the node in a variable, then set the node's name from the variable, Godot drops the @.
As far as I could tell, this isn't mentioned in the documentation. I ran into this issue when saving / loading scenes with children added on the fly and trying to reparent children to the proper parent nodes when loading.

Steps to reproduce:
As above.

Minimal reproduction project:
NameTest.zip

@Calinou
Copy link
Member

Calinou commented Mar 26, 2021

Duplicate of #27608. This is now documented (it will be in the editor help in 3.3): #42865

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants