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.


Messages - bobobo

Pages: [1]
1
NGUI 3 Support / Problem with UILabel
« on: October 15, 2016, 02:04:40 AM »
This is the case, I want to reverse my whole game UI, so I did this to my camera:
camera.projectionMatrix * Matrix4x4.Scale(new Vector3(-1, 1, 1));
But I want to keep the UILabel text readable, so I did this to all the UILabel:
label.transform.Rotate(new Vector3(0, 1, 0), 180);

However, many text seems like they are sheltered by the background. And when I remove the rotation to labels the text come back.
And if I modify the rotation at runtime through inspector, it behavies good.
Could anyone figure me out what's the problem ?

2
NGUI 3 Support / Confusing about NGUI event
« on: July 18, 2016, 02:36:51 AM »
I'm using NGUI3.6.0
There is a sumery about the event In UICamera.cs file, which said:

--OnHover (isOver) is sent when the mouse hovers over a collider or moves away.
--OnSelect (selected) is sent when a mouse button is released on the same object as it was pressed on.

However, when I Click on a gameObject, I got the following events:
-OnHover true (hover in)
-OnPress true (push down)
-OnSelect true (push down, not release yet. But I think OnSelect should be called after "OnPress false")
-OnPress false (release)
-OnHover true (release, why there is a OnHover called?)
-OnClick
-OnHover (hover out)

Pages: [1]