ドキュメント

Unity Engine

Download Unity

Unity Engine

Matches

Obsolete. Use EntityQueryMask.MatchesIgnoreFilter instead.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.