CollectionExtensions Class
Definition
Section titled “Definition”public static class CollectionExtensionsInheritance object
Methods
Section titled “Methods”ToNativeArray(ScriptableList, Allocator)
Section titled “ToNativeArray(ScriptableList, Allocator)”Returns a Unity.Collections.NativeArray1` that is a copy of this list.
public static NativeArray<T> ToNativeArray<T>(this ScriptableList<T> list, Allocator allocator) where T : structParameters
Section titled “Parameters”list ScriptableList<T>
The list to copy.
allocator Unity.Collections.Allocator
The allocator to use.
Returns
Section titled “Returns”Unity.Collections.NativeArray<T>
An array that is a copy of this list.
Remarks
Section titled “Remarks”This method supports both struct and unmanaged types.