docs.unity.cn
    Show / Hide Table of Contents

    Interface INativeDisposable

    For scheduling release of unmanaged resources.

    Namespace: Unity.Collections
    Syntax
    public interface INativeDisposable : IDisposable

    Methods

    Dispose(JobHandle)

    Creates and schedules a job that will release all resources (memory and safety handles) of this collection.

    Declaration
    JobHandle Dispose(JobHandle inputDeps)
    Parameters
    Type Name Description
    JobHandle inputDeps

    A job handle which the newly scheduled job will depend upon.

    Returns
    Type Description
    JobHandle

    The handle of a new job that will release all resources (memory and safety handles) of this collection.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, May 11, 2023