Documentation

Unity Engine


Unity Engine


GetHashCode

Generates a hash for a given component instance
Read time 1 minuteLast updated 3 days ago

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.