Method AddSharedComponentFilterManaged
AddSharedComponentFilterManaged<SharedComponent>(SharedComponent)
Filters this EntityQuery so that it only selects entities with a shared component of type SharedComponent
equal to sharedComponent. Additive with other filter functions.
Declaration
[Obsolete("Managed ISharedComponentData support is deprecated and will be removed. Convert <T> to an unmanaged ISharedComponentData and use the equivalent without the 'Managed' suffix. First deprecated in 6.6.")]
[ExcludeFromBurstCompatTesting("Contains managed shared component code path")]
public void AddSharedComponentFilterManaged<SharedComponent>(SharedComponent sharedComponent) where SharedComponent : struct, ISharedComponentData
Parameters
| Type | Name | Description |
|---|---|---|
| SharedComponent | sharedComponent | The shared component value to filter. |
Type Parameters
| Name | Description |
|---|---|
| SharedComponent | The type of shared component. This type must also be one of the types used to create the EntityQuery. |