[solved] About URL of nested game objects in a collection

In a main.collection, I have a “scene_loader” game object with “zone” game object nested in it. The purpose is simply management in the hierarchy. Now the confusing part for me is the URL of “zone” is “/zone” instead of “/scene_loader/zone”, as you see in below image:

Screenshot 2023-08-26 091548

I tried to dynamically load a collection through that space_01 component using a script and it works with “/zone#space_01”, but not “scene_loader/zone#space_01”. Can someone explain why is it like that?

As for the hierarchy, I can simply change them to be modular than a tree if that’s the case, but I just need to know how this really works before doing that.

Your setup is fine, it’s just that a game object’s URL doesn’t include any parent objects it might have. If scene_loader was a collection instead of an object then the URL would be /scene_loader/zone#space_01.

3 Likes

Ah great example, so it’s collection that makes such hierarchy in the URL, noted. Thanks!

1 Like