- Home /
 
               Question by 
               yapaysinek · Jul 19, 2016 at 12:50 AM · 
                uiraycastbuttontoucheventsystem  
              
 
              Holding down UI Button and shooting raycast from touch position doesn't work simultaneously:((
Hey Unity Pros,
So I have realized that raycasts actually go through UI objects. This was a problem for me so I started doing some research and I found a decent solution. It uses EventSystems and checks if any finger/touch is over a UI element. Now.. this worked great until I added a slow mo button which is press and hold.. and while holding the button the raycast wont initiate because one of the touches is on a UI element. How can we fix this?
Thanks in advance!
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                