AtPlayback
Request that the query's results be captured when the corresponding command is played back.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Field
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
AtPlayback = 1
Remarks
Only a reference to the query itself is serialized into the command buffer. The requested operation is applied to the query during playback. This approach is generally far more efficient, but may lead to unexpected entities being processed (if entities which match the query are created or destroyed between recording the command buffer and playing it back).
Since the serialized query is stored by reference, modifying or deleting the query after the command is recorded may affect the set of chunks and entities matched at playback time.