Class GhostVariantsUtility
Collection of utility that are used by the editor and runtime to compute and check ghost component variants hashes.
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
public static class GhostVariantsUtility
Methods
| Name | Description |
|---|---|
| CalculateVariantHashForComponent(ComponentType) | Calculates the "variant hash" for the component type itself, so that we can fetch the meta-data. |
| UncheckedVariantHash(ulong, ComponentType) | Calculates the "variant hash" for the variant + component pair. |
| UncheckedVariantHash(in FixedString512Bytes, in FixedString512Bytes) | Calculates the "variant hash" for the variant + component pair. |
| UncheckedVariantHash(in FixedString512Bytes, ComponentType) | Calculates a stable hash for a variant via TypeManager.GetTypeNameFixed. |
| UncheckedVariantHashNBC(string, string) | Calculates the "variant hash" for the variant + component pair. Non-Burst Compatible version. |
| UncheckedVariantHashNBC(Type, ComponentType) | Calculates a stable hash for a variant by combining the variant Type.Fullname and ComponentType name hash GetFullNameHash(TypeIndex). |