Does JME3 attach a unique ID to every element of a scene?
jMonkeyEngine Hub
February 9, 2026
I’m a poor one to answer because in every JME game or demo I’ve ever made the spatials are not game objects.
Game object
..Spatial.
Two separate things.
So for me, spatials are created to view a particular game object.
In my case, my “IDs” are the entity IDs of the game object but I’m also not creating worlds in Blender. In that case, I’d probably give them IDs in blender… though I think by default blender already gives things unique names.
edit: re: " I want to add that Tiled is not a software for a specific game/engine - it is a software for universal games on different engines/frameworks."
Yes, “universal games” that are all 2D tile based games that tend to be within a specific genre.
JME can be used to make 2D games, 3D games, planet data viewers, data analysis tools, etc., etc… it can do more then 2D tile-based RPGs. The requirements for “game that can be loaded and run from Blender” are a subset of all games. A narrow one, too. (Most games of a certain level of complexity will invariably have some kind of in-game editor eventually.)
Which ID style should it pick? Stings, Integers, Longs, EntityIds? Whatever it picks will be the wrong choice for 70% of the other games. How will it ensure that those IDs are unique and make sense when you load a j3o that already has a bunch of objects? Object 12345 in room2.j3o may collide with object 12345 in room4.j3o.
This is not the decision JME should make.
If you want to have unique IDs for all your stuff then come up with a scheme for those IDs. Fix them up when you load a j3o so that they are unique in your whole and still self-referenced correctly.
And in that case, it’s probably also good if “unique ID” includes an object type. This will make collisions less likely and errors easier to find. But again, these are all kind of game-specific decisions.
Discussion in the ATmosphere