Documentation

Unity Engine


Unity Engine


ComponentTypeHash

Represents a hash of a component type.
Read time 1 minuteLast updated 4 days ago

Definition

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

FlagsFlags for this component type.
StableTypeHashThe hash value. Not expected to be stable across versions.

Methods

Method

Description

EqualsChecks if a ComponentTypeHash equals some object which may or may not be a ComponentTypeHash
GetHashCodeComputes 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