// chatGPT
The GlobalObjectId struct in Unity is used to uniquely identify an object across different Scenes and across different instances of the same Prefab. When you are in prefab edit mode, the GlobalObjectId of an object inside the Prefab will be set to all zeroes, 00000000000000000000000000000, because the object is not considered to be "live" while in edit mode. Instead, the Prefab is considered to be the live object, and the objects inside it are considered to be instances of that Prefab.
When you exit prefab edit mode, Unity will assign the GlobalObjectId for each object inside the prefab, which can be used to identify the object in the scene.
This is the expected behavior of Unity when working with prefabs. When you want to get the GlobalObjectId of an object that is inside a Prefab and you are in the Prefab edit mode, you should first exit the Prefab edit mode and then get the GlobalObjectId of the object.
refs:
https://docs.unity3d.com/ScriptReference/GlobalObjectId.html