updateTweenData(property, value, index) → {Phaser.Tween}
Updates either a single TweenData or all TweenData objects properties to the given value.
Used internally by methods like Tween.delay, Tween.yoyo, etc. but can also be called directly if you know which property you want to tweak.
The property is not checked, so if you pass an invalid one you'll generate a run-time error.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
property | string | The property to update. | ||
value | number | function | The value to set the property to. | ||
index | number | <optional> | 0 | If this tween has more than one child this allows you to target a specific child. If set to -1 it will set the delay on all the children. |
Returns
This tween. Useful for method chaining.
- Source code: tween/Tween.js (Line 375)
Please login to continue.