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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
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