docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetOrCreatePartiallyUnsafeWithSubHashCode

    GetOrCreatePartiallyUnsafeWithSubHashCode<TContext>(uint, long)

    Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#).

    Declaration
    public static SharedStatic<T> GetOrCreatePartiallyUnsafeWithSubHashCode<TContext>(uint alignment, long subHashCode)
    Parameters
    Type Name Description
    uint alignment

    The alignment (specified in bytes).

    long subHashCode

    The 64-bit sub-hashcode for the shared-static.

    Returns
    Type Description
    SharedStatic<T>

    A newly created or previously cached shared-static for the hashcodes provided.

    Type Parameters
    Name Description
    TContext

    A type class that uniquely identifies the this shared data.

    In This Article
    Back to top
    Copyright © 2025 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)