docs.unity.cn
    Show / Hide Table of Contents

    Method GetUntypedBufferAccessor

    GetUntypedBufferAccessor(ref DynamicComponentTypeHandle)

    Give unsafe access to the buffers with type chunkBufferTypeHandle in the chunk.

    Declaration
    public readonly UnsafeUntypedBufferAccessor GetUntypedBufferAccessor(ref DynamicComponentTypeHandle chunkBufferTypeHandle)
    Parameters
    Type Name Description
    DynamicComponentTypeHandle chunkBufferTypeHandle

    An object containing type and job safety information. To create this object, call GetBufferTypeHandle<T>(Boolean). Pass the object to a job using a public field you define as part of the job struct.

    Returns
    Type Description
    UnsafeUntypedBufferAccessor

    An interface to this chunk's component values for the target buffer component type.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023