docs.unity.cn
    Show / Hide Table of Contents

    Method CopyFromComponentDataArrayAsync

    CopyFromComponentDataArrayAsync<T>(NativeArray<T>, out JobHandle)

    Asynchronously copies the component values in the provided NativeArray to the entities matching this query.

    Declaration
    [BurstCompatible(GenericTypeArguments = new Type[]{typeof(BurstCompatibleComponentData)})]
    public void CopyFromComponentDataArrayAsync<T>(NativeArray<T> componentDataArray, out JobHandle jobhandle)
        where T : struct, IComponentData
    Parameters
    Type Name Description
    NativeArray<T> componentDataArray
    JobHandle jobhandle

    An out parameter assigned a handle that you can use as a dependency for a Job that uses the NativeArray.

    Type Parameters
    Name Description
    T

    The component type.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if T is not part of the query.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 04 August 2022
    Terms of use