Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Malzbier on September 21, 2012, 04:04:17 AM

Title: UIStretch Wrong calculation on widged
Post by: Malzbier on September 21, 2012, 04:04:17 AM
I have a UISliced Sprite, that sprite should have a relative size to a UISprite.

So i created a UIStretch at the UISliced Sprite and added the UISprite to the "Widget Container" field.
Style = Both
Relative size x= 0.5 y= 0.5

The UISprite have the size if x=345.6 y= 53.76 Z)=1

The new set / calculated size of the UISlized Sprite is X= 2468.571 y=384

My personal understanding the result should be X= 172,8 y=26,88.

Whats is going wrong with this?

Greetings Malzbier
Title: Re: UIStretch Wrong calculation on widged
Post by: ArenMook on September 21, 2012, 08:17:38 AM
The two sprites must be beside each other (same root object). I believe Phil fixed this limitation, so it should be in the next update.
Title: Re: UIStretch Wrong calculation on widged
Post by: PhilipC on September 21, 2012, 08:28:06 AM
Yes this limitation should be removed for when ever Mike pushes it :). But please let me know if it still doesnt work.