SetStaticSafetyId(ref AtomicSafetyHandle, int)
Assigns a provided static safety ID to an AtomicSafetyHandle.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
SetStaticSafetyId(AtomicSafetyHandle, int)
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]public static void SetStaticSafetyId(ref AtomicSafetyHandle handle, int staticSafetyId)
Parameters
The AtomicSafetyHandle to modify.
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.
Additional Resources: AtomicSafetyHandle.NewStaticSafetyId.