Method CalculateVariantHashForComponent
CalculateVariantHashForComponent(ComponentType)
Calculates the "variant hash" for the component type itself, so that we can fetch the meta-data.
Declaration
public static ulong CalculateVariantHashForComponent(ComponentType componentType)
Parameters
| Type | Name | Description |
|---|---|---|
| ComponentType | componentType | The ComponentType to be used for both the component, and the variant. |
Returns
| Type | Description |
|---|---|
| ulong | The calculated hash. |
Remarks
It's a little odd, but the default serializer for a Component is the ComponentType itself. I.e. It is its own variant.