Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: tylo on June 26, 2012, 09:28:21 AM
-
Does NGUI have any built-in events for firing an event continuously while the user is clicking and holding down a button? Think an arrow key for movement, while the button is being held down the player would continuously move forward until the button was released.
-
No NGUI does not continuously fire events. If you need to have something happen every frame while a button is being held use the OnPress(bool pressed) function and store a local copy of pressed. Then in a Update function you can fire some event if your pressed variable is true.
-
Sorry Miss reply