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

SystemAPI.Query

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 static QueryEnumerable<T1> Query();

Returns

QueryEnumerable<T1> QueryEnumerable that allows enumerating over all RefRO and RefRW of a given type.

Description

Get Enumerable for iterating through Component types from inside a system

Not working in Entities.ForEach, IJobEntity, and Utility methods


Declaration

public static QueryEnumerable<T1,T2> Query();

Returns

QueryEnumerable<T1,T2> QueryEnumerable that allows enumerating over all RefRO and RefRW of a given type.

Description

Get Enumerable for iterating through Component types from inside a system

Not working in Entities.ForEach, IJobEntity, and Utility methods


Declaration

public static QueryEnumerable<T1,T2,T3> Query();

Returns

QueryEnumerable<T1,T2,T3> QueryEnumerable that allows enumerating over all entities with a given type.

Description

Get Enumerable for iterating through Component types from inside a system

Not working in Entities.ForEach, IJobEntity, and Utility methods


Declaration

public static QueryEnumerable<T1,T2,T3,T4> Query();

Returns

QueryEnumerable<T1,T2,T3,T4> QueryEnumerable that allows enumerating over all RefRO and RefRW of a given type.

Description

Get Enumerable for iterating through Component types from inside a system

Not working in Entities.ForEach, IJobEntity, and Utility methods


Declaration

public static QueryEnumerable<T1,T2,T3,T4,T5> Query();

Returns

QueryEnumerable<T1,T2,T3,T4,T5> QueryEnumerable that allows enumerating over all RefRO and RefRW of a given type.

Description

Get Enumerable for iterating through Component types from inside a system

Not working in Entities.ForEach, IJobEntity, and Utility methods


Declaration

public static QueryEnumerable<T1,T2,T3,T4,T5,T6> Query();

Returns

QueryEnumerable<T1,T2,T3,T4,T5,T6> QueryEnumerable that allows enumerating over all RefRO and RefRW of a given type.

Description

Get Enumerable for iterating through Component types from inside a system

Not working in Entities.ForEach, IJobEntity, and Utility methods


Declaration

public static QueryEnumerable<T1,T2,T3,T4,T5,T6,T7> Query();

Returns

QueryEnumerable<T1,T2,T3,T4,T5,T6,T7> QueryEnumerable that allows enumerating over all RefRO and RefRW of a given type.

Description

Get Enumerable for iterating through Component types from inside a system

Not working in Entities.ForEach, IJobEntity, and Utility methods