CreateReadOnly(ref RigDefinition, NativeArray<AnimatedData>)
Creates a read-only AnimationStream from a RigDefinition and a NativeArray of AnimatedData.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
CreateReadOnly(RigDefinition, NativeArray<AnimatedData>)
public static AnimationStream CreateReadOnly(ref RigDefinition rig, NativeArray<AnimatedData> buffer)
Parameters
The rig definition that describes the layout of the animated data in .
bufferThe NativeArray<T> of AnimatedData that the stream views. Its length must equal BindingSet.StreamSize.
Returns
Type | Description |
|---|---|
| AnimationStream | A read-only AnimationStream. Returns a default stream if |
Remarks
The stream is a view of and uses its safety handle. If safety checks are enabled, using the stream after you dispose the array throws an . Disposing the stream doesn't dispose the array.
bufferObjectDisposedException