Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - rain

Pages: 1 [2]
16
NGUI 3 Support / Fonts
« on: May 06, 2012, 01:56:54 PM »
Hi!

I want my application to work with all languages' fonts. How can I do that?

Regards

17
NGUI 3 Support / Colliders being quite strange
« on: April 25, 2012, 12:57:24 PM »
Hi!

I'm having a problem with colliders being positioned poorly.
My setup looks like this:

*UI Root(3D)
**Camera
***Anchor_Top
***Pause_Menu
****Label
****Quit
****Restart
****Resume
****SlicedSprite(Box)

The Quit,Restart and Resume gameObjects are "buttons", so they have box colliders on them.

The pause menu is normally hidden by having its objects' color alpha set to 0, plus the button game objects
 are rotated by 60 on the X angle.

When the player presses the pause buttons, the alpha values return to normal so they can be seen, and the button game objects get rotated back to (0,0,0) with a TweenRotation called by the pause button.

My problem is that the colliders seem to only be effective in a thin(approx. 15 pixels) line. Its like that the collider hasn't rotated back with the gameObjects, but the editor shows that it's all right.

In play mode, after I change the boxcolliders' positions manually, the colliders behave normally. This doesn't work if i change it in edit mode then hit play... the buttons only receive events in a line.
On the other hand, if I change the values via code, it doesn't seem to have any effect, regardless that it's runtime like when i change the values in play mode with the editor.

I really have no idea what to do, please help!

Pages: 1 [2]