Author Topic: Sprites don't fit inside UI Sprite  (Read 1803 times)

EvanTune

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 2
    • View Profile
Sprites don't fit inside UI Sprite
« on: March 12, 2016, 09:32:33 AM »
Hello there!

As you can see on the image below it is not fitting, how do I make it fit?
Everything I add has it like that.

http://imgur.com/hhVLrNp

Thanks!

EvanTune

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Sprites don't fit inside UI Sprite
« Reply #1 on: March 12, 2016, 04:56:41 PM »
I opened another project then went back to it and now they align fine inside, don't know what happened but fixed now.
It was weird because it happened to all my atlases and anything I added in NGUI, but now they all are fixed after I did that.

Edit: Stuff I put inside a UI panel and Scroll view forces clipping to "Constrain But Don't Clip" which also adds a little gap.

Edit 2: As I was working suddently everything jumped back to how it was, now there is a gap like showed in the first picture again.
« Last Edit: March 12, 2016, 05:25:02 PM by EvanTune »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprites don't fit inside UI Sprite
« Reply #2 on: March 13, 2016, 11:39:59 AM »
Make sure your game view's size is dividable by two on both height and width.