Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: SeanP on April 19, 2012, 01:55:09 PM
-
I'm looking at making a Circular menu, that uses wedged shaped buttons, are there any means for making colliders that would fit non square shapes?
-
NGUI doesn't know nor care what colliders there are. You can use mesh colliders with it and it'll work just fine. I suggest just making a flat sphere collider.
-
alright cool, any suggestions on making irregular colliders?
another question I suppose, how do I make it so that 3D UIs scale properly with different aspect ratios?
-
Make colliders in your modelling app same as you would for any game object.
Use UIAnchor to attach parts to sides of the screen, that's about it.
-
hmm, I have been but they are not staying at the sides when I say switch from 16:9 to 4:3, relaunching between switching as well.
this is how my ui is structured.
UI Root
- UI Camera
- - Anchor - Top Left
- - - Panel
- - - - Elements in Pannel
-
Also, thought you might like to see what we have been doing with NGUI.
(http://i.imgur.com/sHJMD.jpg)
www.KineticVoid.com
-
Holy crap that looks awesome. I love space games!
Where in that hierarchy is your collider attached? It should be on the widget.
-
I figured it out thanks to your reply! for whatever reason I didn't realize that I needed to put a collider on the background panel.
I am very happy with NGUI, and your support, don't regret the purchase at all!
edit:
Looks like the issue is still here,
http://i.imgur.com/eSHbl.png
http://i.imgur.com/uPPNT.png
one is 16:9 the other 4:3 in the 4:3 parts of the sides are still too far off. This is the shipyard ui, for our game.
Here is an image of the setup - its a bit wide, parts of the editor are on another screen.
http://i.imgur.com/h8HTY.png
-
Check the UIAnchors you've used. It's something with how you've offset the side-anchored panels. Check the first example showing UIAnchor to see how yours is different.
-
I cant find a single one of your examples / tutorials that uses a 3D camera with anchors on the sides.
here is my top left anchor for reference http://i.imgur.com/DuBO5.png
-
Er... but your UI looks 2D, not 3D. Why are you using a 3D camera for it?
-
Because it has depth!
http://i.imgur.com/w0syt.png
some parts rotate, some parts move, etc..
the radar actually tracks objects in 3D, kinda hard to show without a video.
This one is while the scene is playing http://i.imgur.com/N1592.png
I suppose I can mix 2d and 3d elements, but what if I want a 3d element anchored to a side?
-
2D tends to be a lot easier to work with in general. Anchoring objects to sides of the screen in 3D UIs was possible back in December, but I've changed the anchoring system since then, so it might need work to make it work in 3D again.