Documentation

Unity Engine

Unity Engine

Equals

Checks if another ComponentTypeHash instance is equal to this one
Read time 1 minuteLast updated 4 days ago

Definition

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

Equals(ComponentTypeHash)

Checks if another ComponentTypeHash instance is equal to this one
public bool Equals(ComponentTypeHash other)

Parameters

A ComponentTypeHash to compare with

Returns

Type

Description

boolTrue if
other
contains the hash value and flags.

Equals(Object)

Checks if a ComponentTypeHash equals some object which may or may not be a ComponentTypeHash
public override bool Equals(object obj)

Parameters

An object to compare with

Returns

Type

Description

boolTrue if
obj
is a ComponentTypeHash, and contains the same hash value and flags.