Search Unity

Question Aspects & EntityQuery(Builder)

Discussion in 'Entity Component System' started by Selmar, Nov 13, 2022.

  1. Selmar

    Selmar

    Joined:
    Sep 13, 2011
    Posts:
    59
    As an exercise, I was trying to declare my dependencies explicitly instead of relying on the IJobEntity.Execute function signature. However, it seems that aspects are not supported yet with the query API, apart from SystemAPI.Query or using a rather complex construction of entity query descriptions.

    I like the way aspects work, so for complex queries this would be convenient. Am I missing something? Or is this future work?
     
  2. StephanieRct_

    StephanieRct_

    Unity Technologies

    Joined:
    Jun 2, 2017
    Posts:
    7
    You are not missing something!
    We've added EntityQueryBuilder.WithAspect<AspectT>() and SystemAPIQueryBuilder.WithAspect<AspectT>() for our next release.
     
    wtmn87 likes this.