PHILIP WALKER BA BSc UNITY DEVELOPER / 3D GAMES ARTIST. About -Blog -Contact -CV - ( views). I just modified a bit the template in Templates-Python-OperatorModalViewRaycast. I hope this is fixable as this is very important for my custom python tools to make correct raycast on a surface. Exact steps for others to reproduce the error.
This question already has an answer here:
How to detect click/touch events on UI and GameObjects 3 answers
Is there way to call the onclick event from a raycast?I have world scale canvas attached to an object that has images with buttons. When I select the button with the mouse my event function is called.But now I am trying to adjust the code so I can avoid using mouse all together.
This is the code I use to raycast into the world space canvas which works and returns the images but I am not sure how I can now call the onclick event since I am not using the mouse but a image instead
Is there way to call the onclick event attached to image that I raycast to or do I have to redo my entire script and not use on click events?