Struct SampledAnimationCurve
A struct that allows converting an AnimationCurve to a SampledCurve blob asset.
Inherited Members
Namespace: Unity.Vehicles
Assembly: com.unity.vehicles.dll
Syntax
[Serializable]
public struct SampledAnimationCurve
Fields
AnimationCurve
AnimationCurve that will be sampled.
Declaration
public AnimationCurve AnimationCurve
Field Value
| Type | Description |
|---|---|
| AnimationCurve |
SamplesCount
Number of samples along the AnimationCurve.
Declaration
public int SamplesCount
Field Value
| Type | Description |
|---|---|
| int |
Methods
CreateBlob(IBaker)
Creates the blob asset for this curve
Declaration
public BlobAssetReference<SampledCurve> CreateBlob(IBaker baker)
Parameters
| Type | Name | Description |
|---|---|---|
| IBaker | baker | The baker |
Returns
| Type | Description |
|---|---|
| BlobAssetReference<SampledCurve> | The blob asset reference to the sampled curve blob |