Click or drag to resize
Ab4d.SharpEngine logo

AnimationTConstructAnimationTrackTProperty, TInfoProperty Method

Helper for constructing final animation track from list of keyframe info entries and animation parameters.

Namespace: Ab4d.SharpEngine.Animation
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
protected static void ConstructAnimationTrack<TProperty, TInfoProperty>(
	KeyframesTrack<TProperty> track,
	TProperty initialValue,
	List<KeyframeInfo<TInfoProperty>> keyframeInfoList,
	Func<KeyframeInfo<TInfoProperty>, float, Keyframe<TProperty>> createKeyframeFunc
)
where TProperty : struct, new()
where TInfoProperty : struct, new()

Parameters

track  KeyframesTrackTProperty
initialValue  TProperty
keyframeInfoList  ListKeyframeInfoTInfoProperty
createKeyframeFunc  FuncKeyframeInfoTInfoProperty, Single, KeyframeTProperty

Type Parameters

TProperty
Type of animated property value.
TInfoProperty
Type of animated property info value. Might be different from actual property value type.
Exceptions
ExceptionCondition
Exception
See Also