Struct AnimationJobCache
AnimationJobCache can be used in animation jobs to store values that can be updated through the AnimationJobCache during the Update loop without rebuilding the job.
Implements
Inherited Members
Namespace: UnityEngine.Animations.Rigging
Assembly: Unity.Animation.Rigging.dll
Syntax
public struct AnimationJobCache : IDisposable
Methods
Dispose()
Dispose of the AnimationJobCache memory.
Declaration
public void Dispose()
GetRaw(CacheIndex, int)
Gets raw float data at specified index.
Declaration
public float GetRaw(CacheIndex index, int offset = 0)
Parameters
Type | Name | Description |
---|---|---|
CacheIndex | index | CacheIndex value. |
int | offset | Offset to the CacheIndex. |
Returns
Type | Description |
---|---|
float | The raw float data. |
Get<T>(CacheIndex, int)
Gets value at specified index.
Declaration
public T Get<T>(CacheIndex index, int offset = 0) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
CacheIndex | index | CacheIndex value. |
int | offset | Offset to the CacheIndex. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | The value type. |
SetArray<T>(T[], CacheIndex, int)
Sets an array of values at specified index.
Declaration
public void SetArray<T>(T[] v, CacheIndex index, int offset = 0) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
T[] | v | Array of values. |
CacheIndex | index | CacheIndex value. |
int | offset | Offset to the CacheIndex. |
Type Parameters
Name | Description |
---|---|
T |
SetRaw(float, CacheIndex, int)
Sets raw float data at specified index.
Declaration
public void SetRaw(float val, CacheIndex index, int offset = 0)
Parameters
Type | Name | Description |
---|---|---|
float | val | Raw float data. |
CacheIndex | index | CacheIndex value. |
int | offset | Offset to the CacheIndex. |
Set<T>(T, CacheIndex, int)
Sets value at specified index.
Declaration
public void Set<T>(T val, CacheIndex index, int offset = 0) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
T | val | Value. |
CacheIndex | index | CacheIndex value. |
int | offset | Offset to the CacheIndex. |
Type Parameters
Name | Description |
---|---|
T |