Table of Contents

Class TMPBlendCurve

Blend curve with built-in offsets.
This uses a different, internal way to calculate offsets (different from e.g. OffsetBundle) because it was created to be used for TMPMeshModifier clips in the timeline, which requires the offset to be adjustable in certain ways, in some cases.

[Serializable]
[TMPParameterBundle("BlendCurve")]
public class TMPBlendCurve
Inheritance
TMPBlendCurve
Inherited Members

Constructors

TMPBlendCurve()

public TMPBlendCurve()

TMPBlendCurve(TMPBlendCurve)

public TMPBlendCurve(TMPBlendCurve crv)

Parameters

crv TMPBlendCurve

Fields

curve

The curve used for evaluation.

[TMPParameterBundleField("curve", new string[] { "crv" })]
public AnimationCurve curve

Field Value

AnimationCurve

finishWholeSegmentInTime

Whether to finish blending the entire segment in the specified duration, or the first character.

[TMPParameterBundleField("ignoresegmentlength", new string[] { "ignoresegmentlen", "ignoreseglen", "ignseglen", "ignsegmentlength", "ignsegmentlen" })]
public bool finishWholeSegmentInTime

Field Value

bool

ignoreAnimatorScaling

Whether to ignore animator scaling (for relevant offset types).

[TMPParameterBundleField("ignorescaling", new string[] { "ignorescl", "ignscl", "ignscaling" })]
public bool ignoreAnimatorScaling

Field Value

bool

uniformity

The uniformity that should be applied to the offset.

[TMPParameterBundleField("uniformity", new string[] { "uni" })]
public float uniformity

Field Value

float

Properties

provider

The ITMPOffsetProvider used to calculate offsets.

public ITMPOffsetProvider provider { get; set; }

Property Value

ITMPOffsetProvider

Methods

EvaluateIn(float, float, float, float, float)

Evaluate as an "in" blending curve.

public float EvaluateIn(float timeValue, float totalDuration, float minOffset, float maxOffset, float offset)

Parameters

timeValue float
totalDuration float
minOffset float
maxOffset float
offset float

Returns

float

EvaluateIn(float, float, CharData, IAnimatorDataProvider, ITMPSegmentData)

Evaluate as an "in" blending curve.

public float EvaluateIn(float timeValue, float totalDuration, CharData cData, IAnimatorDataProvider animatorData, ITMPSegmentData segmentData)

Parameters

timeValue float
totalDuration float
cData CharData
animatorData IAnimatorDataProvider
segmentData ITMPSegmentData

Returns

float

EvaluateIn(float, float, CharData, IAnimationContext)

Evaluate as an "in" blending curve.

public float EvaluateIn(float timeValue, float duration, CharData cData, IAnimationContext context)

Parameters

timeValue float
duration float
cData CharData
context IAnimationContext

Returns

float

EvaluateOut(float, float, float, float, float, float)

Evaluate as an "out" blending curve.

public float EvaluateOut(float timeValue, float totalDuration, float preTime, float minOffset, float maxOffset, float offset)

Parameters

timeValue float
totalDuration float
preTime float
minOffset float
maxOffset float
offset float

Returns

float

EvaluateOut(float, float, float, CharData, IAnimatorDataProvider, ITMPSegmentData)

Evaluate as an "out" blending curve.

public float EvaluateOut(float timeValue, float totalDuration, float preTime, CharData cData, IAnimatorDataProvider animatorData, ITMPSegmentData segmentData)

Parameters

timeValue float
totalDuration float
preTime float
cData CharData
animatorData IAnimatorDataProvider
segmentData ITMPSegmentData

Returns

float

EvaluateOut(float, float, float, CharData, IAnimationContext)

Evaluate as an "out" blending curve.

public float EvaluateOut(float timeValue, float duration, float preTime, CharData cData, IAnimationContext context)

Parameters

timeValue float
duration float
preTime float
cData CharData
context IAnimationContext

Returns

float