Skip to content

Commit 7065cff

Browse files
committed
Remove suggestion to delete animation.
It turns out deleting animations is ... complicated? An animation that has .teardown called doesn't need to be destroyed. It seems that there is unschedule and destroy that ... need to be called depending on if the animation has been scheduled yet? None of the other examples cover destroying, so remove it from here.
1 parent 7291051 commit 7065cff

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

source/_guides/graphics-and-animations/animations.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,8 @@ animation_set_duration(s_animation, 1000);
199199
// Create the AnimationImplementation
200200
animation_set_implementation(s_animation, &s_implementation);
201201
202-
...
203-
204202
// Play the Animation
205203
animation_schedule(s_animation);
206-
207-
...
208-
209-
// Destroy the animation
210-
animation_destroy(s_animation);
211204
```
212205

213206
The output of the example above will look like the snippet shown below (edited

0 commit comments

Comments
 (0)