文档

Unity Engine

Download Unity

Unity Engine

ComponentTypeHash

Represents a hash of a component type.
阅读时间1 分钟最后更新于 19 天前

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