Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetStaticSafetyId(ref AtomicSafetyHandle, int)

Assigns a provided static safety ID to an AtomicSafetyHandle.
Read time 1 minuteLast updated 19 days ago

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.