文档

Unity Engine

Download Unity

Unity Engine

Equals

Checks if another ComponentTypeHash instance is equal to this one
阅读时间1 分钟最后更新于 19 天前

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.