Version: 2023.1
言語: 日本語

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