docs.unity.cn
    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 Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use