Network Entities and Components
Creating a networked Entity
// Create a new entity with the following components
var newEntity = EntityManager.CreateEntity( typeof(Simulated),
typeof(Translation), typeof(PlayerScore));
// Update the Translation of the entity
EntityManager.SetComponentData(newEntity, new Translation
{ Value = new float3(2, 3, 4) });
// Update the PlayerScore of the entity
EntityManager.SetComponentData(newEntity, new PlayerScore { number = 42 }); Destroy a networked Entity
Adding graphics and sound
Last updated
Was this helpful?

