文档

Unity Engine

Download Unity

Unity Engine

Equals

Checks if this component type has the same ComponentType.TypeIndex and ComponentType.AccessModeType as the other component type.
阅读时间1 分钟最后更新于 20 天前

Definition

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

Equals(ComponentType)

Checks if this component type has the same ComponentType.TypeIndex and ComponentType.AccessModeType as the other component type.
public bool Equals(ComponentType other)

Parameters

The other component type to compare to

Returns

Type

Description

boolTrue if the ComponentType.TypeIndex and ComponentType.AccessModeTypeof both are equal

Equals(Object)

Checks to see if an object is equal to this component type.
[ExcludeFromBurstCompatTesting("Takes managed object")]public override bool Equals(object obj)

Parameters

The object to check

Returns

Type

Description

boolTrue if the object is a ComponentType and the object equals this component type