Author Topic: UIStretch not stretching 100%  (Read 5032 times)

morgue

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
UIStretch not stretching 100%
« 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'.
« Last Edit: February 11, 2014, 11:25:11 PM by morgue »

morgue

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: UIStretch not stretching 100%
« Reply #1 on: February 11, 2014, 11:37:45 PM »
It's more noticable on this screenshot


vallcrist

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 49
    • View Profile
Re: UIStretch not stretching 100%
« Reply #2 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.

morgue

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: UIStretch not stretching 100%
« Reply #3 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 :(
« Last Edit: February 12, 2014, 01:08:58 PM by morgue »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIStretch not stretching 100%
« Reply #4 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.