Struct ConditionFilter<T>
Filter that holds a delegate to a custom validity function
Namespace: Unity.Semantic.Traits.Queries
Syntax
[Serializable]
public struct ConditionFilter<T> : IQueryFilter where T : struct, ITraitData
Type Parameters
| Name | Description |
|---|---|
| T | Trait type |
Fields
ReferenceData
Object used as a reference in the validity check
Declaration
public T ReferenceData
Field Value
| Type | Description |
|---|---|
| T |
Valid
Delegate validity function
Declaration
public ConditionFilter<T>.ValidComparer Valid
Field Value
| Type | Description |
|---|---|
| ConditionFilter.ValidComparer<> |
Methods
Validate(EntityManager, NativeArray<Entity>, UnsafeBitArray)
Check a list of entity validity and marks non-valid ones inside entitiesValid
Declaration
public void Validate(EntityManager entityManager, NativeArray<Entity> entities, UnsafeBitArray entitiesValid)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityManager | entityManager | Entity manager |
| NativeArray<Entity> | entities | List of entity |
| UnsafeBitArray | entitiesValid | Array of bit that marks if an entity is valid for the current query |