Interface IQueryScorer
Interface used to declare a scorer that can be used to sort Semantic Query results
Namespace: Unity.Semantic.Traits.Queries
Syntax
public interface IQueryScorer
Methods
GetScore(EntityManager, Entity)
Give a score for an entity based on its trait ComponentData
Declaration
float GetScore(EntityManager entityManager, Entity entity)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityManager | entityManager | Entity Manager |
| Entity | entity | Entity to be evaluated |
Returns
| Type | Description |
|---|---|
| Single | Score value |