mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Address review comment
This commit is contained in:
parent
b6c0fbdf73
commit
10de24b6f6
1 changed files with 5 additions and 2 deletions
|
@ -76,6 +76,9 @@ impl AnimationInfo {
|
||||||
let mut animation_clip = AnimationClip::default();
|
let mut animation_clip = AnimationClip::default();
|
||||||
|
|
||||||
// Create a curve that animates font size.
|
// Create a curve that animates font size.
|
||||||
|
//
|
||||||
|
// `VariableCurve::linear` is just a convenience constructor; it's also
|
||||||
|
// possible to initialize the structure manually.
|
||||||
animation_clip.add_curve_to_target(
|
animation_clip.add_curve_to_target(
|
||||||
animation_target_id,
|
animation_target_id,
|
||||||
VariableCurve::linear::<AnimatablePropertyKeyframes<FontSizeProperty>>(
|
VariableCurve::linear::<AnimatablePropertyKeyframes<FontSizeProperty>>(
|
||||||
|
@ -84,8 +87,8 @@ impl AnimationInfo {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Create a curve that animates font color.
|
// Create a curve that animates font color. Note that this should have
|
||||||
// Note that this should have the same time duration as the previous curve.
|
// the same time duration as the previous curve.
|
||||||
animation_clip.add_curve_to_target(
|
animation_clip.add_curve_to_target(
|
||||||
animation_target_id,
|
animation_target_id,
|
||||||
VariableCurve {
|
VariableCurve {
|
||||||
|
|
Loading…
Reference in a new issue