ドキュメント

Unity Engine

Unity Engine

DeallocateOnJobCompletionAttribute

Automatically deallocates a native container when a job is finished.
読み終わるまでの所要時間 3 分最終更新 1ヶ月前

Definition

[AttributeUsage(AttributeTargets.Field)]public sealed class DeallocateOnJobCompletionAttribute : Attribute

Remarks

Use this attribute on native container fields marked with NativeContainerSupportsDeallocateOnJobCompletionAttribute in a job struct. In particular, fields of type NativeArray can be automatically deallocated with this attribute. When the job finishes execution, the job system automatically deallocates the native container.

Inheritance

Inherited Members