docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method UncheckedVariantHash

    UncheckedVariantHash(in FixedString512Bytes, ComponentType)

    Calculates a stable hash for a variant via TypeManager.GetTypeNameFixed.

    Declaration
    public static ulong UncheckedVariantHash(in FixedString512Bytes variantTypeFullName, ComponentType componentType)
    Parameters
    Type Name Description
    FixedString512Bytes variantTypeFullName

    The Variant Type's FullName.

    ComponentType componentType

    The ComponentType that this variant applies to.

    Returns
    Type Description
    ulong

    The calculated hash.

    UncheckedVariantHash(in FixedString512Bytes, in FixedString512Bytes)

    Calculates the "variant hash" for the variant + component pair.

    Declaration
    public static ulong UncheckedVariantHash(in FixedString512Bytes variantTypeFullName, in FixedString512Bytes componentTypeFullName)
    Parameters
    Type Name Description
    FixedString512Bytes variantTypeFullName

    The Variant Type's System.Type.FullName.

    FixedString512Bytes componentTypeFullName

    The Component Type's System.Type.FullName that this variant applies to.

    Returns
    Type Description
    ulong

    The calculated hash.

    UncheckedVariantHash(ulong, ComponentType)

    Calculates the "variant hash" for the variant + component pair.

    Declaration
    public static ulong UncheckedVariantHash(ulong variantTypeHash, ComponentType componentType)
    Parameters
    Type Name Description
    ulong variantTypeHash

    The hash of the Variant Type's System.Type.FullName.

    ComponentType componentType

    The ComponentType that this variant applies to.

    Returns
    Type Description
    ulong

    The calculated hash.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)