Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateSafetyHandle(AllocatorHandle)

Creates a new AtomicSafetyHandle that is valid until CollectionHelper.DisposeSafetyHandle is called.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public static AtomicSafetyHandle CreateSafetyHandle(AllocatorManager.AllocatorHandle allocator)

Parameters

The AllocatorHandle to use.

Returns

Type

Description

AtomicSafetyHandleSafety handle.