Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: ngmax12 on July 19, 2013, 10:47:52 AM
-
Hey guys,
I've just started using this terrific GUI tool and have come across a nagging issue.
What I am trying to do is create borders for a menu using sliced sprites. However, even
though my border texture is 32x32, it gets scaled up significantly in the scene.
An image to illustrate my point:
(https://dl.dropboxusercontent.com/u/53832482/nguiissue.jpg)
Any assistance will be greatly appreciated, thanks!
P.S - I am using the free version of NGUI.
-
1. Sprite scale = size of the sprite. If your sprite is 32x32, then scale should be (32, 32, 1) -- exactly what hitting Make Pixel Perfect sets it to.
2. Free version doesn't come with support. :P
-
Hey Aren,
I appreciate the help! I am trying to recreate an in-game store UI to convince our boss to purchase
this plugin, as I can see it will save us a lot of time.
It seems like the issue isn't sprite scale, because I have another sprite right next to it which is significantly
larger yet in the scene the tiny square sprite is larger, even when I click on Make Pixel Perfect(Which
puts the values you see in pic). What is expected is that the smaller sprite should also be smaller
in the scene but this doesn't happen for some reason(Sprite scale for all is 1).
Pic:
(https://dl.dropboxusercontent.com/u/53832482/nguiissue2.jpg)
Any light you could shed on this puzzling issue will be great. Thanks!
-
Your sprites wouldn't have floating-point based positions if you truly made them pixel-perfect. Select your UIRoot and hit ALT+SHIFT+P. Then follow NGUI's tutorials because all of this stuff is covered and explained.
And the reason the free version doesn't come with support is because it's very old -- over a year old to be exact. Too many things have changed since then for me to do any kind of support for it.
-
When I do it just zeroes out my sprite's scale, and when I scale it back I get the same thing. However, if I use
a simple 2D UI instead of the current 3D one it works just fine. Not sure why but it seems like that was the issue.
By the way that not supporting the outdated free version makes sense. Appreciate your help, Aren!
-
My gut feeling is that you're not using the hierarchy properly, otherwise the sizes wouldn't work.