Author Topic: UIStretch in addition to a fixed pixel sprite  (Read 3727 times)

Celgonath

  • Guest
UIStretch in addition to a fixed pixel sprite
« on: February 04, 2013, 02:13:56 PM »
Hi,
Is it possible to have two separate gui-boxes, where one of those are, say, 200 pixels wide, and the other to cover the rest of the screenwidth? Can this be done with UIStretch to account for different resolutions?

cayou

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 3
  • Posts: 90
    • View Profile
Re: UIStretch in addition to a fixed pixel sprite
« Reply #1 on: February 04, 2013, 04:03:26 PM »
Hi,
200 px must be fixed no matter the resolution is?

I don't know if you saw the relative size property from UIStretch script, that let you use a factor to adjust your stretchiness (?).

Celgonath

  • Guest
Re: UIStretch in addition to a fixed pixel sprite
« Reply #2 on: February 05, 2013, 03:32:04 AM »
Yes.
I know about the relative size that lets the element UIStretch is attached to adjust to the screen size, but only in percentages as far as I know. The percentage varies depending on the resolution when there is a fixed size put into the mix. Having both elements adjust to the resolution is always an option, but I just wanted to know if it was possible to do it the other way.