Author Topic: UIPanel's magenta edge in editor not display correctly  (Read 4665 times)

daifan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
UIPanel's magenta edge in editor not display correctly
« on: October 05, 2016, 11:15:32 AM »
I set UIRoot to constrained at width 1080, height 1920, and set UIPanel clipping to none.
The magenta edge of the UIPanel is not displayed accordingly and still follow the size of editor view.
Wondering how it could be fixed? Thank you.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel's magenta edge in editor not display correctly
« Reply #1 on: October 06, 2016, 06:01:45 AM »
That's what magenta does -- it shows you the game view's size. The teal outline shows you the chosen dimensions.

daifan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: UIPanel's magenta edge in editor not display correctly
« Reply #2 on: October 09, 2016, 02:44:41 PM »
I'm not sure. If I set an sprite to anchor to the parent panel, when make the editor view fullscreen, there is a clear shape change in the sprite, which should not be there if I set UIRoot's mode to "Constrained" with content width to 1080, height to 1920.
Please check the screenshot.
« Last Edit: October 09, 2016, 02:51:23 PM by daifan »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel's magenta edge in editor not display correctly
« Reply #3 on: October 11, 2016, 10:01:28 AM »
In the 2nd pic, you have no game view visible. When there is no game view visible, there is no way to tell its size on Mac OSX -- it's a recent Unity bug. This doesn't affect run-time apps.