文档

Unity Engine

Unity Engine

GetAllowReadOrWriteAccess(AtomicSafetyHandle)

Checks if the AtomicSafetyHandle is configured to allow reading or writing.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static bool GetAllowReadOrWriteAccess(AtomicSafetyHandle handle)

Parameters

The AtomicSafetyHandle to check.

Returns

Type

Description

boolTrue if the AtomicSafetyHandle is configured to allow reading or writing, false otherwise.

Remarks

Read and write access is allowed by default in any newly created AtomicSafetyHandle.