16
NGUI 3 Support / How to Create a modular clipped panel? (resizes correctly with its container)
« on: November 09, 2013, 12:32:09 PM »
Hey guys,
so I watched the "how to make a modular UI" video, and I quite like it.
My attempts have been successful, at creating even more complex UIs than the one presented in the video.
But one thing I failed to "modularize", is the clipped panel.
So let's say I have an inventory with an inner window for my contents (see attachment), what I'd like to be able to do, is resize the inner window, and have the clipped panel resize itself accordingly and correctly.
I tried doing the same thing, attaching a UIAnchor and UIStretch scripts to it, but it didn't work, it didn't resize properly.
And it is really annoying to having to resize it every time I resize my windows, especially since it's a clipped panel.
Thanks for your time and any help or suggestions.
so I watched the "how to make a modular UI" video, and I quite like it.
My attempts have been successful, at creating even more complex UIs than the one presented in the video.
But one thing I failed to "modularize", is the clipped panel.
So let's say I have an inventory with an inner window for my contents (see attachment), what I'd like to be able to do, is resize the inner window, and have the clipped panel resize itself accordingly and correctly.
I tried doing the same thing, attaching a UIAnchor and UIStretch scripts to it, but it didn't work, it didn't resize properly.
And it is really annoying to having to resize it every time I resize my windows, especially since it's a clipped panel.
Thanks for your time and any help or suggestions.