Improbable Icon

Getting a GameObject from an Entity




I’m looking for a way to get a GameObject from an Entity. Using SpatialOS.CreateEntity() I get the EntityId from its result, which I use to get the Entity from SpatialOS.GetLocalEntity(). And here I’m stuck. I’v seen a couple of examples on the forum, but they all use the deprecated Universe.

I’m using v13.1 and Unity SDK 2.0.1.

EDIT: Found a solution. LocalEntities.Get() is what I needed.