Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: cayou on May 04, 2012, 12:54:18 PM

Title: [Layouts] Half screen Sprite
Post by: cayou on May 04, 2012, 12:54:18 PM
Hi everybody,
I'm looking for a "special" layout, and I can't figure out how to do it.
NGUI provides left top bottom right, etc...layouts but how can I display a simple SlicedSprite that will fit half of the screen on width, regardless of the resolution/screen ratio?

I'm pretty sure that's a newbie question, but I'm really stuck ! I know how to do it myself by coding it, but I'd like to know if NGUI provides this simple feature.

Thanks !!
Title: Re: [Layouts] Half screen Sprite
Post by: ArenMook on May 04, 2012, 01:06:48 PM
Create a sprite and add a UIStretch script to it.
Title: Re: [Layouts] Half screen Sprite
Post by: cayou on May 04, 2012, 01:35:30 PM
Seems that I don't have this script, I'm running the latest free version 1.68b (from the Unity forum website), maybe it's a new feature?
Title: Re: [Layouts] Half screen Sprite
Post by: ArenMook on May 04, 2012, 01:36:02 PM
Ah yes, free version doesn't have it. Free version is months behind the latest.
Title: Re: [Layouts] Half screen Sprite
Post by: cayou on May 04, 2012, 01:48:21 PM
Okay, now I understand :) So I'll buy,it's worth it ;)
Thanks for quick support.