文档

Unity Engine

Unity Engine

Equals

Compare this instance to another EntityQueryMask for equality.
阅读时间1 分钟最后更新于 19 天前

Definition

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

Equals(EntityQueryMask)

Compare this instance to another EntityQueryMask for equality.
public bool Equals(EntityQueryMask other)

Parameters

The instance to compare against.

Returns

Type

Description

boolTrue if both masks refer to the same archetype set within the same world, or false otherwise.

Equals(Object)

Compare this instance to another object for equality.
public override bool Equals(object obj)

Parameters

The object to compare against.

Returns

Type

Description

boolTrue if
obj
is an EntityQueryMask that refers to the same archetype set within the same world, or false otherwise.