- Home /
Is it possible to listen for Double clicks on selection grid elements ?
I'm currently writing a custom editor. I'm using a tab controller with 2 tabs, the first one displays a selection grid of items. I would like the users to be able to double click selection grid item to show more information about the object in the 2nd tab. Is there any way to detect double clicks on a grid element ? Which one was double clicked ? Thanx in advance for your time. :)
Answer by Owen-Reynolds · Jun 11, 2013 at 08:43 PM
Here's what I replied to someone else. In your case, you'd record the last x/y grid position, instead of just the button:
http://answers.unity3d.com/questions/460587/how-to-detect-double-click-on-gui-button-in-unity-.html
Thank you for this quick answer! It's a bit awkward that Unity doesn't provide an easy way to do it.
Your answer
Follow this Question
Related Questions
Detect when project is saved 1 Answer
Event when exiting PolygonCollider2D edit mode 1 Answer
GetMouseButtonDown strange behaviour 0 Answers
Steal keyboard event Alpha0-9 and disable Unity editor hotkey in custom editor script 1 Answer
Unity UI 4.6 - Programmatically adding events - EventTrigger.delegates is null 0 Answers