↧
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 ArticleAnswer 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 ArticleAnswer 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