Add TweenAnchorMin/Max
hsandt opened this issue · comments
Is your feature request related to a problem? Please describe.
I wanted to animate the Anchors Min property of a RectTransform, but it turns out I can only change the anchored position with TweenAnchoredPosition.
Describe the solution you'd like
Add extensions TweenAnchorMin and TweenAnchorMax / classes AnchorMinTween and AnchorMaxTween that is similar to TweenAnchoredPosition / AnchoredPositionTween, but in OnUpdate, it sets anchorMin/Max instead.
Describe alternatives you've considered
For now I have to make my own timer and update code to set anchorMin/Max manually every frame.
Hi! I've released v1.12.0, which adds support for Anchor Min and Anchor Max! I hope this helps you in your development.
Happy coding!
Example:
target.TweenAnchorMin (new Vector2 (1, 0), 1);
target.TweenAnchorMax (new Vector2 (1, 0), 1);
Thanks, combined with a SetFrom it did exactly what I needed!