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

パラメーター

handle Safety 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.