Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: UltraTM on September 08, 2014, 12:47:38 PM
-
Hello @ all :)
I got an problem with NGUI.
I need to have an bag for my game.
so the code is basicly i have a panel and an background for it.
also i have an Close button in the window.
Then i have an item inside which is the base item.
this item gets cloned via an code to generate the item count which my bag has.
My problem is that i cant get the bag slots with the background centerd :(
Also cant get it work that the Close Button and other stuff is always for an example in the top right corner when the window is getting resized.
I attach some Screenshots.
and hope someone could help.
Playing now since 3 hours around and cant get this worked :(
-
You can to use the Anchors to keep your Elements positioned according another ones.
Get a look in this tutorial:
https://www.youtube.com/watch?v=GIpccFRIXmo
-
Ok fixed it now :)
thanks for the help