Version: 2023.2
public static bool IsDefaultValue (ref Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle);

参数

handle 安全句柄。

返回

bool true if the handle has not yet been initialized and still has its default value; false otherwise.

描述

Check if the handle still has its default value (i.e. has not yet been initialized by being assigned or passed to AtomicSafetyHandle.Create).

By default, an AtomicSafetyHandle variable is not initialised, which means it does not reference any central record and has not stored a version number. This changes when you pass the variable to AtomicSafetyHandle.Create, or when you assign it from an existing initialised AtomicSafetyHandle.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961