- Home /
Question by
grayfox · Sep 23, 2011 at 06:26 PM ·
guionmousedowntoolbar
OnMouse* functions for Toolbar elements?
I'm rewriting my GUI using the standard GUI class but I'm having some trouble replicating some functionality I used to have with regular GUITexture.
I have this toolbar at the top with a bunch of items, and I want users to be able to drag elements from that bar on the scene. With regular GUITextures, I would just use the OnMouseDown, OnMouseDrag, and OnMouseUp and do what I needed there but I don't see how I would go about doing this with a Toolbar (seems I can only detect if an element was pressed).
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612222953im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Add a button to toolbar/selection grid? 1 Answer
Paper, Rock, Scissor 3 Answers
Attaching Scripts to GUI Components 1 Answer
Toolbar question... 1 Answer
How to disable a part of a script to avoid replayed camera animations ? 0 Answers