Documentation

Unity Engine


Unity Engine


GetTempMemoryHandle()

Gets an AtomicSafetyHandle for the temporary memory allocations in a temporary memory scope.
Read time 1 minuteLast updated 9 days ago

Definition

public static AtomicSafetyHandle GetTempMemoryHandle()

Returns

Type

Description

AtomicSafetyHandleThe AtomicSafetyHandle for temporary memory allocations in the current scope.

Remarks

The temporary safety handle is invalidated when the temporary memory is freed. This happens when the active temporary memory scope exists, which happens at least once per frame. Don't manually call AtomicSafetyHandle.Release on this AtomicSafetyHandle.