Documentation

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.
Read time 1 minuteLast updated a month ago

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