Struct DistanceFilter
Filter that checks for every semantic objects in a given radius
Namespace: Unity.Semantic.Traits.Queries
Syntax
[Serializable]
[QueryEditor("Location/In Radius", "In radius [m_Radius] from object [m_Source]", null)]
public struct DistanceFilter : IQueryFilter
Properties
Radius
Radius within an object is considered valid
Declaration
public float Radius { get; set; }
Property Value
| Type | Description |
|---|---|
| Single |
Source
Source object used to calculate the distance
Declaration
public SemanticObject Source { get; set; }
Property Value
| Type | Description |
|---|---|
| SemanticObject |
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 |