Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAtomicSafetyHandle<T>(ref NativeList<T>)

Returns this list's AtomicSafetyHandle.
Read time 1 minuteLast updated 19 days ago

Definition

GetAtomicSafetyHandle<T>(NativeList<T>)

public static AtomicSafetyHandle GetAtomicSafetyHandle<T>(ref NativeList<T> list) where T : unmanaged

Parameters

The list.

Returns

Type

Description

AtomicSafetyHandleThe atomic safety handle for this list.

Remarks

The job safety checks use a native collection's atomic safety handle to assert safety.
This method is only available if the symbol
ENABLE_UNITY_COLLECTIONS_CHECKS
is defined.