文档

Unity Engine

Unity Engine

Matches

Obsolete. Use EntityQueryMask.MatchesIgnoreFilter instead.
阅读时间1 分钟最后更新于 19 天前

Definition

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

Matches(Entity)

警告
Removed. This method has been renamed to MatchesIgnoreFilter, for clarity. It will return false positives if the query uses chunk filtering or enableable components, and should not be used. (RemovedAfter Entities 1.0)
public bool Matches(Entity entity)

Parameters

entity

The entity to check.

Returns

Type

Description

boolTrue if the entity would be returned by the EntityQuery (ignoring any filtering or enableable components), or false if it would not.

Matches(ArchetypeChunk)

警告
Removed. This method has been renamed to MatchesIgnoreFilter, for clarity. It will return false positives if the query uses chunk filtering, and should not be used. (RemovedAfter Entities 1.0)
public bool Matches(ArchetypeChunk chunk)

Parameters

The chunk to check.

Returns

Type

Description

boolTrue if the chunk would be returned by the EntityQuery (ignoring any filtering), or false if it would not.

Matches(EntityArchetype)

Reports whether the archetype would be selected by the EntityQuery instance used to create this entity query mask.
public bool Matches(EntityArchetype archetype)

Parameters

The archetype to check.

Returns

Type

Description

boolTrue if the entity would be returned by the EntityQuery, false if it would not.

Remarks

The match does not consider any filter settings of the EntityQuery.