Method CreateArrayFilledWithValue
CreateArrayFilledWithValue<T>(T, int, Allocator)
Creates a new array allocated with allocator
and initialized with length
copies of value
.
Declaration
public static NativeArray<T> CreateArrayFilledWithValue<T>(T value, int length, Allocator allocator) where T : struct
Parameters
Type | Name | Description |
---|---|---|
T | value | The value with which to fill the array. |
int | length | The length of the array to create. |
Allocator | allocator | The allocator with which to create the |
Returns
Type | Description |
---|---|
NativeArray<T> | A new |
Type Parameters
Name | Description |
---|---|
T | The type of the |