Add AacFlState.WithMotionTime to replace AacFlState.MotionTime:
- Add AacFlState.WithMotionTime(...) to replace AacFlState.MotionTime() - This is more in line with the function naming convention.
This commit is contained in:
@@ -445,10 +445,19 @@ namespace AnimatorAsCode.V1
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME API: Shouldn't there be a WithMotionTimeSetTo?
|
/// Obsolete. Use `WithMotionTime()` instead.<br/>
|
||||||
// FIXME API inconsistency: Shouldn't this also be called WithMotionTime?
|
/// Set the Motion Time to a parameter. This was formerly known as Normalized Time.<br/>
|
||||||
/// Set the Motion Time to a parameter. This was formerly known as Normalized Time.
|
/// <br/>
|
||||||
|
/// This function is preserved for compatibility.<br/>
|
||||||
|
/// The behaviour is identical to `WithMotionTime()`.
|
||||||
|
[Obsolete("This function was renamed to WithMotionTime(AacFlFloatParameter)")]
|
||||||
public AacFlState MotionTime(AacFlFloatParameter floatParam)
|
public AacFlState MotionTime(AacFlFloatParameter floatParam)
|
||||||
|
{
|
||||||
|
return WithMotionTime(floatParam);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Set the Motion Time to a parameter. This was formerly known as Normalized Time.
|
||||||
|
public AacFlState WithMotionTime(AacFlFloatParameter floatParam)
|
||||||
{
|
{
|
||||||
State.timeParameterActive = true;
|
State.timeParameterActive = true;
|
||||||
State.timeParameter = floatParam.Name;
|
State.timeParameter = floatParam.Name;
|
||||||
|
|||||||
Reference in New Issue
Block a user