Author Topic: [Layouts] Half screen Sprite  (Read 5248 times)

cayou

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 90
    • View Profile
[Layouts] Half screen Sprite
« 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 !!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [Layouts] Half screen Sprite
« Reply #1 on: May 04, 2012, 01:06:48 PM »
Create a sprite and add a UIStretch script to it.

cayou

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 90
    • View Profile
Re: [Layouts] Half screen Sprite
« Reply #2 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [Layouts] Half screen Sprite
« Reply #3 on: May 04, 2012, 01:36:02 PM »
Ah yes, free version doesn't have it. Free version is months behind the latest.

cayou

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 90
    • View Profile
Re: [Layouts] Half screen Sprite
« Reply #4 on: May 04, 2012, 01:48:21 PM »
Okay, now I understand :) So I'll buy,it's worth it ;)
Thanks for quick support.