本文整理汇总了C++中FRichCurve::FindKey方法的典型用法代码示例。如果您正苦于以下问题:C++ FRichCurve::FindKey方法的具体用法?C++ FRichCurve::FindKey怎么用?C++ FRichCurve::FindKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FRichCurve
的用法示例。
在下文中一共展示了FRichCurve::FindKey方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetOrAddKey
void FMatineeImportTools::SetOrAddKey( FRichCurve& Curve, float Time, float Value, float ArriveTangent, float LeaveTangent, EInterpCurveMode MatineeInterpMode )
{
FKeyHandle KeyHandle = Curve.AddKey( Time, Value, false, Curve.FindKey( Time ) );
FRichCurveKey& Key = Curve.GetKey( KeyHandle );
Key.ArriveTangent = ArriveTangent;
Key.LeaveTangent = LeaveTangent;
Key.InterpMode = MatineeInterpolationToRichCurveInterpolation( MatineeInterpMode );
Key.TangentMode = MatineeInterpolationToRichCurveTangent( MatineeInterpMode );
}
示例2: AddKeyToCurve
void UMovieSceneSection::AddKeyToCurve(FRichCurve& InCurve, float Time, float Value, EMovieSceneKeyInterpolation Interpolation, const bool bUnwindRotation)
{
if (IsTimeWithinSection(Time))
{
if (TryModify())
{
FKeyHandle ExistingKeyHandle = InCurve.FindKey(Time);
FKeyHandle NewKeyHandle = InCurve.UpdateOrAddKey(Time, Value, bUnwindRotation);
if (!InCurve.IsKeyHandleValid(ExistingKeyHandle) && InCurve.IsKeyHandleValid(NewKeyHandle))
{
MovieSceneHelpers::SetKeyInterpolation(InCurve, NewKeyHandle, Interpolation);
}
}
}
}