Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Aspects & EntityQuery(Builder)

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

  1. Selmar

    Selmar

    Joined:
    Sep 13, 2011
    Posts:
    55
    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:
    6
    You are not missing something!
    We've added EntityQueryBuilder.WithAspect<AspectT>() and SystemAPIQueryBuilder.WithAspect<AspectT>() for our next release.
     
    wtmn87 likes this.