hey im still new to godot and would love a little help. i need my scenes to keep the same name or some way of identifying them as i instantiate more of them, right now the first one is fine then the rest just default to node 2D. i tried to attach a script to them with a var called ID but it gives me an error when i go “instance.ID” saying invalid access key
When I create several objets I usually use something like this:
ia.name = "IA_" + str(doorPos).to_snake_case()
In this instance, IA is for an InteractiveArea class. Then I take the doorPos, which is the door position, and put that in snake case. It the end, this gives me an immediate knowledge of what the thing is, its purpose and its location.
These infos are not always necessary or important to have, that’s how I work. The thing here is that name isn’t necessarily a variable that you know of. But it’s there for every object.