this post was submitted on 08 Jan 2024
10 points (100.0% liked)

Godot

5681 readers
1 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 1 year ago
MODERATORS
 

Is there something like a node ID which is specific to that node and will be the same no matter how often I execute the game? That would be super useful for saving and loading games.

you are viewing a single comment's thread
view the rest of the comments
[–] julianh@lemm.ee 2 points 8 months ago (1 children)

Node paths are unique and stay consistent across restarts, although I don't know if that's exactly what you're asking for.

[–] Smorty@lemmy.blahaj.zone 1 points 8 months ago (1 children)

This works really well when you have one large world on which you want to save many different objects, but I would like to have a node unique ID which is unique across the entire project. Otherwise though, a really good call, thank you!

[–] csprance@lemmy.world 1 points 8 months ago* (last edited 8 months ago)

scene name + node path