Documentation

Unity Engine

Unity Engine

IsDefaultValue(in AtomicSafetyHandle)

Checks if an AtomicSafetyHandle has its default value.
Read time 1 minuteLast updated a month ago

Definition

IsDefaultValue(AtomicSafetyHandle)

public static bool IsDefaultValue(in AtomicSafetyHandle handle)

Parameters

The AtomicSafetyHandle to check.

Returns

Type

Description

bool
true
if the AtomicSafetyHandle hasn't been initialized and still has its default value;
false
otherwise.

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.