Class ArrayExtensions
  
Array utilities functions
 
Inheritance
ArrayExtensions
 
Syntax
public static class ArrayExtensions
 
Methods
  
Resizes a transform access array.
Target array to resize
New size of transform access array to resize
 
Declaration
public static void ResizeArray(this ref TransformAccessArray array, int capacity)
 
Parameters
ResizeArray<T>(ref T[], Int32)
Resizes an array. If a null reference is passed, it will allocate the desired array.
Target array to resize
New size of array to resize
 
Declaration
public static void ResizeArray<T>(ref T[] array, int capacity)
 
Parameters
| Type | 
Name | 
Description | 
| T[] | 
array | 
 | 
| Int32 | 
capacity | 
 | 
Type Parameters
ResizeArray<T>(ref NativeArray<T>, Int32)
Resizes a native array. If an empty native array is passed, it will create a new one.
Target array to resize
New size of native array to resize
 
Declaration
public static void ResizeArray<T>(this ref NativeArray<T> array, int capacity)
    where T : struct
 
Parameters
Type Parameters