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
Returns
Type | Description |
|---|---|
| int | Returns 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
Returns
Type | Description |
|---|---|
| int | Returns 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
Returns
Type | Description |
|---|---|
| int | Returns true if the types are equal. |