Improbable Icon

How to get EntityId from Reader


#1

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?


#3

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


#4

Thanks, just what I was looking for!