Version: 1.4
LanguageEnglish
  • C#

AtomicSafetyHandle.Create

Declaration

public static Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle Create();

Returns

AtomicSafetyHandle The newly created AtomicSafetyHandle.

Description

Creates a new AtomicSafetyHandle.

If the memory associated with this container is being allocated using Allocator.Temp, then use AtomicSafetyHandle.GetTempMemoryHandle instead of this method.

See Also: AtomicSafetyHandle.Release.


对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答