ComponentTypeHash
Represents a hash of a component type.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
- Implements: IEquatable<ComponentTypeHash>
public struct ComponentTypeHash : IEquatable<ComponentTypeHash>
Remarks
This struct is mostly intended for internal use in the Entity differ and patcher code. This hash is NOT expected to be stable across versions.
Fields
Value | Description |
|---|---|
| Flags | Flags for this component type. |
| StableTypeHash | The hash value. Not expected to be stable across versions. |
Methods
Method | Description |
|---|---|
| Equals | Checks if a ComponentTypeHash equals some object which may or may not be a ComponentTypeHash |
| GetHashCode | Computes a hashcode to support hash-based collections. |
Operators
Operator | Description |
|---|---|
| operator == | Checks if two ComponentTypeHash instances are equal |
| operator != | Checks if two ComponentTypeHash instances are not equal |