IsDefaultValue(in AtomicSafetyHandle)
Checks if an AtomicSafetyHandle has its default value.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
IsDefaultValue(AtomicSafetyHandle)
public static bool IsDefaultValue(in AtomicSafetyHandle handle)
Parameters
The AtomicSafetyHandle to check.
Returns
Type | Description |
|---|---|
| bool | |
Remarks
An AtomicSafetyHandle still has its default value if it hasn't been initialized by being assigned or passed to AtomicSafetyHandle.Create.
By default, an AtomicSafetyHandle variable isn't initialized, which means it doesn't reference any central record and doesn't have a stored a version number. This changes when you pass the variable to AtomicSafetyHandle.Create, or when you assign it from an existing initialized AtomicSafetyHandle.