Version: 2023.2

AtomicSafetyHandle.GetNestedContainer

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

参数

handle 安全句柄。

返回

bool true if the given AtomicSafetyHandle is marked as a nested container; false otherwise.

描述

Check whether the given AtomicSafetyHandle represents a nested container, and therefore cannot safely be used in jobs.

Additional resources: AtomicSafetyHandle.SetNestedContainer.