https://github.com/Unity-Technologies/EntityComponentSystemSamples/tree/master/ECSSamples/Assets/HelloCube/5. SpawnFromEntity
“SpawnerAuthoring_FromEntity.cs” is the main one you want to look at.
Some more examples:
https://github.com/Unity-Technologies/EntityComponentSystemSamples/blob/c13d4eb831d9794ac00d4f11f8209b50db7ef25b/ECSSamples/Assets/Use Case Samples/1. State Machine AI/PlayerAuthoring.cs
Main thread for this API:
1 Like