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.