docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ThrowIfNoHash

    ThrowIfNoHash(ulong, FixedString512Bytes)

    Validation that the SourceGenerators return valid hashes for "default serializers".

    Declaration
    [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
    public static void ThrowIfNoHash(ulong hash, FixedString512Bytes context)
    Parameters
    Type Name Description
    ulong hash

    Hash to check.

    FixedString512Bytes context
    Exceptions
    Type Condition
    InvalidOperationException
    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)