Version: 2022.3
언어: 한국어

DeallocateOnJobCompletionAttribute

class in Unity.Collections

매뉴얼로 전환

설명

Automatically deallocates the native container when the job is finished.

Apply this attribute to native container fields in a job struct, provided the type of the field is marked with the NativeContainerSupportsDeallocateOnJobCompletionAttribute. In particular, fields of type NativeArray can be automatically deallocated with this mechanism. When the job finishes execution, the job system automatically deallocates the native container. See Also: NativeContainerSupportsDeallocateOnJobCompletionAttribute