Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Dethanos on December 07, 2013, 05:32:06 PM

Title: UI Root and stretch
Post by: Dethanos 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.
Title: Re: UI Root and stretch
Post by: ArenMook 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.
Title: Re: UI Root and stretch
Post by: Dethanos 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 :)