Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to query Entities.WithNone<DynamicBuffer<T>>() ?

Discussion in 'Entity Component System' started by andrew-lukasik, Aug 12, 2020.

  1. andrew-lukasik

    andrew-lukasik

    Joined:
    Jan 31, 2013
    Posts:
    249
    How to create Entities.ForEach job that excludes entities with specific dynamic buffer? I Ask because this gives me error:
    Entities
    .WithNone<DynamicBuffer<MyBufferElement>>()

    error DC0051: Type DynamicBuffer`1 cannot be used with WithNone as generic types and parameters are not allowed
     
  2. brunocoimbra

    brunocoimbra

    Joined:
    Sep 2, 2015
    Posts:
    679
    .WithNone<MyBufferElement>()
     
  3. andrew-lukasik

    andrew-lukasik

    Joined:
    Jan 31, 2013
    Posts:
    249
    Ohh I see. Thank you!