Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: morgue on February 11, 2014, 11:15:58 PM

Title: UIStretch not stretching 100%
Post by: morgue on February 11, 2014, 11:15:58 PM
I have a texture that uses UIStretch to fill the entire screen, but it's off by like 2 pixels, if I set the relative size to something over 1,1, it "fixes" it, but this wasn't happening before, so it's weird. (I'm going back some versions to see if it was something I changed)

I'm not sure if it's the Texture that's not stretching well, or if there's something that needs to be changed on the camera.

The Style for UIStretch is set to 'Both'.
Title: Re: UIStretch not stretching 100%
Post by: morgue on February 11, 2014, 11:37:45 PM
It's more noticable on this screenshot

Title: Re: UIStretch not stretching 100%
Post by: vallcrist on February 12, 2014, 02:58:37 AM
I believe UIStretch is now deprecated, you should be using the new anchor system for this..

Set the anchor type to unified, set the transform to the UIPanel and adjust the pivot points accordingly ( left to left, right to right.. ) and set the distance to 0, this will cause the Texture to stretch over the whole screen.
Title: Re: UIStretch not stretching 100%
Post by: morgue on February 12, 2014, 07:41:49 AM
I believe UIStretch is now deprecated, you should be using the new anchor system for this..

Set the anchor type to unified, set the transform to the UIPanel and adjust the pivot points accordingly ( left to left, right to right.. ) and set the distance to 0, this will cause the Texture to stretch over the whole screen.

I'm using 2.7.0. and I can't find some of the options you mentioned, like anchor type. And the texture I'm stretching is a child of my UI Camera, not a UIPanel.

Haven't solved this :(
Title: Re: UIStretch not stretching 100%
Post by: ArenMook on February 13, 2014, 03:03:31 AM
NGUI 2 has been deprecated a while back, and isn't supported anymore, so I can't suggest much.