Author Topic: UI Root and stretch  (Read 5252 times)

Dethanos

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 11
    • View Profile
UI Root and stretch
« on: December 07, 2013, 05:32:06 PM »
Evenin,

First off let me just say that this is awesome gui system :-)

I think I may have noticed a bug in the 3.0.7 RC2.

I have a sliced sprite which I am using as my background, I set the sprites anchors to be Padded and then dragged in the 'UI Root (2D)' and everything appears to work fine (stretch wise). I then save the prefab (by dragging and dropping it back in to the project view) and remove it.

Now comes the bug, when I add that prefab back to my MainPanel the anchors on the sliced sprite that I intended to use as a background have disappeared.

Cheers for your assistance and keep up the good work.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Root and stretch
« Reply #1 on: December 07, 2013, 08:12:51 PM »
Prefabs can only reference objects and scripts that are a part of the prefab. It's a Unity limitation.

Dethanos

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: UI Root and stretch
« Reply #2 on: December 08, 2013, 12:27:30 PM »
Woke up and realized exactly that... only just got back online, was hoping no one had seen it... ahh well :)