Improbable Icon

How to get gameobject reference from an entityID on on the GameLogicWorker

Hi,
What is the new way of finding GameObject based on the entityID on the GameLogicWorker?

When I’m making this line:
foreach (var entity in GameObject.FindObjectsOfType<LinkedEntityComponent>
I’m receiving the list of UnityClient and UnityGameLogic entites in my Development Scene.
What is the proper way?

reference:
https://forums.improbable.io/t/gameobject-reference-from-an-entityid/2054
https://forums.improbable.io/t/find-gameobject-with-entityid/5535

Hey @Wader

Just an update on my previous reply to you, the GDK team suggested you use LinkedGameObjectMap class - https://documentation.improbable.io/gdk-for-unity/docs/api-subscriptions-linkedgameobjectmap