文档

Unity Engine

Unity Engine

CheckWriteAndThrow(AtomicSafetyHandle)

Check whether the referenced native container can be written to.
阅读时间1 分钟最后更新于 1 个月前

Definition

[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]public static void CheckWriteAndThrow(AtomicSafetyHandle handle)

Parameters

The AtomicSafetyHandle to check.

Remarks

Throws the
InvalidOperationException
exception if the
AtomicSafetyHandle
is already destroyed or a job is currently reading or writing to the data.