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 - p3nguinc4g3

Pages: [1]
1
NGUI 3 Support / render order problems for UI in game world
« on: December 08, 2014, 01:54:50 PM »
I have a UI element that I want rendered on the floor of my game world, where characters can walk on top of it. I've assigned the element its own panel and set it to explicitly render starting at 3000. There are three elements in the panel, two of which render correctly. The third element, a UILabel, always renders on top of everything in the game world. The UILabel has a depth of 2. If I change the depth to 0, the label drops behind the background but now the background and the other element in the panel renders on top of everything in my game world. I've double checked that the render camera is correct. This seems like a bug with the UILabel depth, but I'm not sure how to go about figuring it out. The version of NGUI I'm using is 3.0.8.

2
NGUI 3 Support / Finding the original event target using EventDelegate
« on: January 27, 2014, 12:32:59 PM »
I'm setting up a grid panel that gets populated with a lot of buttons at run time. I'd like to be able to have the containing menu attach an event listener that listens for the click function of the button and then do some updates based on the initializing parameters of the button. With the previous event system, UIEventListener, this was easy because the click delegate has parameters that allowed you to easily identify the target of the event. I've been unable to find a way to do this with the new system using EventDelegate. Is there a way to designate function parameters or find the event target when using EventDelegate?

Pages: [1]