文档

Unity Engine

Download Unity

Unity Engine

AddSharedComponentFilter<SharedComponent>(SharedComponent)

Filters this EntityQuery so that it only selects entities with an unmanaged shared component of type SharedComponent equal to sharedComponent. Additive with other filter functions.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

AddSharedComponentFilter<T>(T)

public void AddSharedComponentFilter<SharedComponent>(SharedComponent sharedComponent) where SharedComponent : unmanaged, ISharedComponentData

Parameters

sharedComponent

T
The unmanaged shared component value to filter.