MoDDiB / dotween

Automatically exported from code.google.com/p/dotween
0 stars 0 forks source link

Unity UI 4.6 RectTransform DOSizeDelta don´t do anything #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Unity UI 4.6 RectTransform DOSizeDelta
2.
3.

What is the expected output? What do you see instead?
Its expected to modify the scale but nothing hapends.

What version of the product are you using? On what operating system?
DOTeen v1.0.220 in Mac osx 10.10.1

Please provide any additional information below.
Is there another method to change the scale of the RectTransform?

Original issue reported on code.google.com by da...@dymdev.com on 24 Feb 2015 at 10:45

GoogleCodeExporter commented 8 years ago
I just tested it and it works perfectly here. Are you sure you're targeting the 
correct RectTransform, or that you're passing the correct values to achieve the 
expected result? Unity UI sizeDelta is not a "regular" scale, but works based 
on the parent's anchors position. Try to set it manually first (with 
myRectTransform.sizeDelta), to be sure the Vector2 you should pass to 
DOSizeDelta is truly the one you want to achieve.

Original comment by daniele....@gmail.com on 24 Feb 2015 at 11:05