Improbable Icon


How to get EntityId from Reader


I am using SpatialOS within Unity and would like to access an EntityID from a MonoBehaviour which has read access to an entity (Reader). I noticed the Writer class has an EntityID property but there doesn’t appear to be one on the Reader.

How can I get the EntityID from a read only MonoBehaviour?


Have a look at the GameObject - I believe it should have an EntityID extension method on it.


Thanks, just what I was looking for!