기술 자료

Unity Engine

Unity Engine

Create(int, AllocatorHandle, NativeArrayOptions)

Returns a new list.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public static UnsafeList<T>* Create(int initialCapacity, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.UninitializedMemory)

Parameters

initialCapacity

The initial capacity of the list.

The allocator to use.

Whether newly allocated bytes should be zeroed out.

Returns

Type

Description

UnsafeList<T>*A pointer to the new list.