Quantcast
Channel: Answers for "If I have a button over my 3d world, how can I detect if a mouseClick was in the world or not?"
Browsing latest articles
Browse All 10 View Live

Answer by gnoblin

Use OnMouseDown() function in a script hanging on your GameObjects.

View Article


Answer by AngryAnt

GUI receives mouse events one frame before Input does - you can use this fact to detect whether or not a mouse event was consumed by GUI when you're checking for mouse events in Input.if...

View Article


Answer by Ent

Hi, been reading through some other postings and gathered some interesting things together that may help some other people reading this and needing a more complex solution for different reasons and...

View Article

Answer by ben

use events such as mouse position and click count inside GUI buttonvar gu : GUIText; var aa = 0 ; var aaa : String;function OnGUI(){var e : Event = Event.current; Debug.Log(e.mousePosition); if(aa==1){...

View Article

Answer by Veehmot

Use `GUIUtility.hotControl`.

View Article

Browsing latest articles
Browse All 10 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>