Version: 2022.3
言語: 日本語

NativeSetClassTypeToNullOnScheduleAttribute

class in Unity.Collections.LowLevel.Unsafe

マニュアルに切り替える

説明

When this attribute is applied to a field in a job struct, the managed reference to the class will be set to null on the copy of the job struct that is passed to the job.

The C# job system does not allow managed references in the job struct. Sometimes it is necessary to have a class in a job struct, even though in the context of the job it is always null. See Also: IJob.