Class TypeHash | Entities | 0.10.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Class TypeHash

    Inheritance
    Object
    TypeHash
    Namespace: Unity.Entities
    Syntax
    public class TypeHash

    Methods

    CalculateMemoryOrdering(Type)

    Declaration
    public static ulong CalculateMemoryOrdering(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    UInt64

    CalculateStableTypeHash(Type)

    Declaration
    public static ulong CalculateStableTypeHash(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    UInt64

    CombineFNV1A64(UInt64, UInt64[])

    Declaration
    public static ulong CombineFNV1A64(ulong hash, params ulong[] values)
    Parameters
    Type Name Description
    UInt64 hash
    UInt64[] values
    Returns
    Type Description
    UInt64

    FNV1A64(Int32)

    Declaration
    public static ulong FNV1A64(int val)
    Parameters
    Type Name Description
    Int32 val
    Returns
    Type Description
    UInt64

    FNV1A64(String)

    Declaration
    public static ulong FNV1A64(string text)
    Parameters
    Type Name Description
    String text
    Returns
    Type Description
    UInt64

    HashType(Type, Int32)

    Declaration
    public static ulong HashType(Type type, int fieldIndex = 0)
    Parameters
    Type Name Description
    Type type
    Int32 fieldIndex
    Returns
    Type Description
    UInt64
    In This Article
    • Methods
      • CalculateMemoryOrdering(Type)
      • CalculateStableTypeHash(Type)
      • CombineFNV1A64(UInt64, UInt64[])
      • FNV1A64(Int32)
      • FNV1A64(String)
      • HashType(Type, Int32)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023