Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: jleung on January 09, 2013, 09:28:43 PM

Title: stickypress question
Post by: jleung on January 09, 2013, 09:28:43 PM
I am trying to use the stickypress flag on the UICamera.  I have buttons on one layer which I want to behave like normal (with stickypress flag checked), and another set of buttons on a separate layer with stickypress unchecked behavior.  For each of these layers, I have a UICamera with that layer set as the EventReceiver mask.  When I have one camera with stickypress set to true, and the other with stickypress set to false, I get stickypress off behavior for all the buttons.  Is there another way I can set this up to get the behavior I am looking for?
Title: Re: stickypress question
Post by: ArenMook on January 10, 2013, 01:45:59 PM
Pretty much by writing custom code. Keep track of what's underneath the touch (UICamera.hoveredObject) and react accordingly.