docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class GhostVariantsUtility

    Collection of utility that are used by the editor and runtime to compute and check ghost component variants hashes.

    Inheritance
    object
    GhostVariantsUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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).

    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)