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

EntityQuery.CopyFromComponentDataArray

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

Declaration

public void CopyFromComponentDataArray(NativeArray<T> componentDataArray);

Parameters

Parameter Description
componentDataArray The values to copy into the matching entities.

Description

Copies the values of component type T in a NativeArray into the entities matched by this query.

This version of the function blocks on all registered jobs that access any of the query components. For a non-blocking variant, see EntityQuery.CopyFromComponentDataListAsync