Improbable Icon

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

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?


Hey @Wader

Just an update on my previous reply to you, the GDK team suggested you use LinkedGameObjectMap class -