About the 🕹️ Studio Feedback category

Have a feature request or general feedback about Niantic Studio? Let us know!

I couldn’t find any mention in the documentation on how to get a component / gameObject inside the code, except for the camera (using world.camera.getActiveEid()). If I compare it to Unity I’m thinking of equivalents to GameObject.Find("name"), .FindObjectOfType() or stuff like .TryGetComponent().

Do those exist? And if so, please add them to the documentation or clarify how this intended to be used otherwise :pray: Thanks in advance

1 Like

Hey Felix,

You can list matching entities using queries In a system or in tick()

If you need communication between entities you can use emit and listen to broadcast and react to events.

You also have the capability to use an eid field on a component’s schema to add entity references between objects using the sidebar. This is similar to assigning an object to a public variable in Unity’s inspector.

1 Like