docs.unity3d.com
    Show / Hide Table of Contents

    Struct WorldAllocator

    Namespace: Unity.Entities
    Syntax
    [BurstCompile]
    public struct WorldAllocator : AllocatorManager.IAllocator, IDisposable

    Properties

    Name Description
    Function

    The allocator function. It can allocate, deallocate, or reallocate.

    Handle

    This allocator.

    IsCustomAllocator

    Check whether an allocator is a custom allocator

    ToAllocator

    Cast the Allocator index into Allocator

    Methods

    Name Description
    Dispose()

    Dispose the allocator. This must be called to free the memory blocks that were allocated from the system.

    Initialize(AllocatorManager.AllocatorHandle)
    IsInitialized()
    Try(ref AllocatorManager.Block)

    Invoke the allocator function.

    Back to top
    Terms of use
    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