Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

EntityQueryCaptureMode.AtPlayback

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Request that the query's results be captured when the corresponding command is played back.

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.