Summary
Creates a
Unity.Collections.NativeArray`1 containing a single element so that it can be used like a reference
in Unity's C# Job system which does not allow regular reference types.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerUtilities
Syntax
public static NativeArray<T> CreateNativeReference<T>() where T : struct
Remarks
Note that you must call
Unity.Collections.NativeArray`1.Dispose when you're done with the array.Type Parameters
| Name | Description |
|---|---|
| T |
Return Value
| Type | Description |
|---|---|
| NativeArray |