feat: add option to not automatically plays tweener effect #280
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
Change Summary:
Added a new option on the tweener effect called "StartMode" to set it to not automatically play on start. eg. you have an image with a UIEffect and UIEffectTweener and do not want the effect to play instantly when the object starts but still want to use Normal/Unscaled update mode to not have to tween values manually in code.
Context/Motivation:
I was having an issue where I was using a UIEffect component together with UIEffectTweener and it was tweening my values automatically on start. Since I still wanted to use Normal/Unscaled update mode and did not want to always enable/disable the component I created a new option called StartMode where you can set it to manual and the script will wait until you first call Play() on UIEffectTweener to start modifying the values, also you can keep it on automatic and use the default behavior.
Type of change
Test environment
Checklist
develop
branch