{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method Register | Collections | 2.4.0-exp.2
docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method Register

    Register<T>(ref T, bool, bool, int)

    Saves an allocator's function pointers in a free slot of the global function table. Thread safe.

    Declaration
    [ExcludeFromBurstCompatTesting("Uses managed delegate")]
    public static void Register<T>(this ref T t, bool IsAutoDispose = false, bool isGlobal = false, int globalIndex = 0) where T : unmanaged, AllocatorManager.IAllocator
    Parameters
    Type Name Description
    T t

    Reference to the allocator.

    bool IsAutoDispose

    Flag indicating if the allocator will automatically dispose allocations.

    bool isGlobal

    Flag indicating if the allocator is a global allocator.

    int globalIndex

    Index into the global function table of the allocator to be created.

    Type Parameters
    Name Description
    T

    The type of allocator to register.

    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)