Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetStaticSafetyId

Assigns the provided static safety ID to an AtomicSafetyHandle. The ID's owner type name and any custom error messages are used by the job debugger when reporting errors involving the target handle.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

SetStaticSafetyId<T>(AtomicSafetyHandle, int)

Assigns the provided static safety ID to an AtomicSafetyHandle. The ID's owner type name and any custom error messages are used by the job debugger when reporting errors involving the target handle.
public static void SetStaticSafetyId<T>(ref AtomicSafetyHandle handle, ref int sharedStaticId)

Parameters

Safety handle.

sharedStaticId

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

Remarks

This is preferable to AtomicSafetyHandle.NewStaticSafetyId as it is compatible with burst.

SetStaticSafetyId(AtomicSafetyHandle, int, FixedString512Bytes)

Assigns the provided static safety ID to an AtomicSafetyHandle. The ID's owner type name and any custom error messages are used by the job debugger when reporting errors involving the target handle.
public static void SetStaticSafetyId(ref AtomicSafetyHandle handle, ref int sharedStaticId, FixedString512Bytes name)

Parameters

Safety handle.

sharedStaticId

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

The name of the resource type.

Remarks

This is preferable to AtomicSafetyHandle.NewStaticSafetyId as it is compatible with burst.