You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -494,6 +494,22 @@ var instance = gameObject.AddTween(tween);
494
494
Debug.Log(instance.target);
495
495
```
496
496
497
+
### Await Decommission
498
+
499
+
The await decommission method will return an enumerator that will await the decommission of the Tween. This can be used in coroutines to wait for the Tween to finish or be cancelled.
500
+
501
+
```cs
502
+
IEnumeratorAwaitDecommission();
503
+
```
504
+
505
+
### Await Decommission Async
506
+
507
+
The await decommission async method will return an awaitable that will await the decommission of the Tween. This can be used in async methods to wait for the Tween to finish or be cancelled.
508
+
509
+
```cs
510
+
AwaitableAwaitDecommissionAsync();
511
+
```
512
+
497
513
## Extensions
498
514
499
515
Tweens also provides extension methods that can be used to control the Tween module.
The await decommission method will return an enumerator that will await the decommission of the Tween. This can be used in coroutines to wait for the Tween to finish or be cancelled.
529
-
530
-
```cs
531
-
IEnumeratorAwaitDecommission();
532
-
```
533
-
534
-
### Await Decommission Async
535
-
536
-
The await decommission async method will return an awaitable that will await the decommission of the Tween. This can be used in async methods to wait for the Tween to finish or be cancelled.
537
-
538
-
```cs
539
-
AwaitableAwaitDecommissionAsync();
540
-
```
541
-
542
542
## Advanced Examples
543
543
544
544
Besides the many different types of Tweens and Tween Options, Tweens also provides a wide range of features that can be used to create advanced animations. The following sections will show you how to implemented some of these features to create advanced animation logic.
0 commit comments