Version: 2023.2

AtomicSafetyHandle.GetTempMemoryHandle

切换到手册
public static Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle GetTempMemoryHandle ();

返回

AtomicSafetyHandle 用于当前范围中临时内存分配的安全句柄。

描述

Returns the safety handle which should be used for all temp memory allocations in this temp memory scope.

All temp memory allocations share the same safety handle since they are automatically disposed of at the same time. You should not call Release on this handle yourself.

Additional resources: AtomicSafetyHandle.IsTempMemoryHandle.