- Home /
Question by
oweiuroweiur · Nov 15, 2013 at 03:33 AM ·
gameobjectmouseguitexture
Can GUITexture block all underneath mouse clicks?
Hi, in my game I made toolbar from guitexture. The problem is that if I click on toolbar button and there is some gameobject under the button the OnMouseDown event is calling for that object. So I am wondering is there a way without raycasts to prevent all gameobjects process events under gui texture? Thanks
Comment
Answer by an-ch · Nov 15, 2013 at 10:42 AM
Well did you use onkeydown or similar method? if u did it means whenever the key is pressed it will trigger object now matter where your cursor is. If u dont want to use raycast, change your methods. And without code its hard to tell what wrong.
Hope i was helpful. :D