文档

Unity Engine

Download Unity

Unity Engine

NativeArraySharedInt(NativeArray<int>, AllocatorHandle)

Construct a NativeArraySharedInt struct from a NativeArray
阅读时间1 分钟最后更新于 19 天前

Definition

  • Type: Constructor
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public NativeArraySharedInt(NativeArray<int> sourceBuffer, AllocatorManager.AllocatorHandle allocator)

Parameters

sourceBuffer

Original source values.

The NativeArray allocation type.