기술 자료

Unity Engine

Unity Engine

SetStaticSafetyId(ref AtomicSafetyHandle, int)

Assigns a provided static safety ID to an AtomicSafetyHandle.
읽는 시간 1분최근 업데이트: 2달 전

Definition

SetStaticSafetyId(AtomicSafetyHandle, int)

[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]public static void SetStaticSafetyId(ref AtomicSafetyHandle handle, int staticSafetyId)

Parameters

The AtomicSafetyHandle to modify.

staticSafetyId

The static safety ID to associate with the provided AtomicSafetyHandle. This ID must have been allocated with AtomicSafetyHandle.NewStaticSafetyId.

Remarks

The ID's owner type name and any custom error messages are used by the job debugger when reporting errors involving the target handle.