Query<T1>
Namespace Mc.Scripting · Kind class (sealed)
public sealed class Query<T1> : Query where T1 : unmanagedA query over one component type.
Examples
Section titled “Examples”Each
// _mana is a Query<Mana> created in OnEnable with Ecs.Query<Mana>()_mana.Each((Entity entity, ref Mana m) => m.Value++);Methods
Section titled “Methods”| Member | Description |
|---|---|
void Each(QueryAction<T1> action) |
Calls action for every matching entity. |
public void Each(QueryAction<T1> action)Calls action for every matching entity.
Parameters
| Name | Type | Description |
|---|---|---|
action |
QueryAction<T1> |