Support => NGUI 3 Support => Topic started by: broken on May 23, 2013, 04:49:53 AM
Title: PixelPerfect style - UITexture and UIStretch
Post by: broken on May 23, 2013, 04:49:53 AM
Hello!
I have the following settings: UIRoot, style = PixelPerfect UITexture (background) with UIStretch (style = Both) Texture (attach) size = 1000x700 Game size in editor = 960x640
As seen in the screenshot (attach) to the left of the background is a line. I understand this is because of the wrong size textures for UIStretch and how to fix it?
Advise where I can read more about the difference between a PixelPerfect and FixedSize, as well as the desired resolution textures for these styles (developing for different resolutions).
Thanks!
Title: Re: PixelPerfect style - UITexture and UIStretch
Post by: broken on May 23, 2013, 05:07:11 AM
Before that UITexture was in the UICamera game object, now transferred it to the Anchor (Center) and everything was fine. Apparently without Anchor UIStretch what makes something a offset texture. Maybe I'm still doing something wrong?
Title: Re: PixelPerfect style - UITexture and UIStretch
Post by: ArenMook on May 23, 2013, 11:26:21 AM
I am confused by what you're trying to do, but everything must be underneath some anchor -- center, or otherwise -- and the scales of all objects leading up to your widgets must be (1, 1, 1), except UIRoot.
Title: Re: PixelPerfect style - UITexture and UIStretch
Post by: broken on May 23, 2013, 01:04:17 PM
Why confused? I just wanted to make a stretchable background with UITexture and UIStretch.
Title: Re: PixelPerfect style - UITexture and UIStretch
Post by: ArenMook on May 23, 2013, 09:17:02 PM