文档

Unity Engine

Unity Engine

GetHashCode

Generates a hash for a given component instance
阅读时间1 分钟最后更新于 19 天前

Definition

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

GetHashCode<T>(T)

Generates a hash for a given component instance
public static int GetHashCode<T>(ref T val) where T : struct

Parameters

val

T
Component instance to hash

Returns

Type

Description

intReturns true if the types are equal.

GetHashCode(void*, TypeIndex)

Generates a hash for a given component instance
public static int GetHashCode(void* val, TypeIndex typeIndex)

Parameters

Pointer to component instance to hash

typeIndex

TypeIndex for the component

Returns

Type

Description

intReturns true if the types are equal.

GetHashCode(Object, TypeIndex)

Generates a hash for a given component instance
public static int GetHashCode(object val, TypeIndex typeIndex)

Parameters

Component instance to hash

typeIndex

TypeIndex for the component

Returns

Type

Description

intReturns true if the types are equal.