- Home /
TMPro UI elements not blocking raycasts
Hey everyone, I'm having a bit (lot) of trouble at the moment. I can't seem to make TMPro UI elements block raycasts and any normal UI elements for that matter. Even the unityengine.eventsystems.eventsystem.current.ispointerovergameobject()
method won't work at all and I've tried searching for hours for another solution, but alas, I haven't found any.
Please help!
Answer by SeaPeaMe · Jul 07, 2019 at 03:01 AM
Okay, I was a doof and I found out my problem:
I was putting the pointer over game object code in the wrong script!
(Unbelievable!)
Answer by k234234w · Jul 05, 2019 at 04:30 PM
Does your canvas have a graphics raycaster component, and do the ui elements have Raycast Target checked?
Can i see what your canvas looks like? And do you have an EventSystem in the scene?
Here you go: Folder with images in it (The unity forum kept spitting errors at me when trying to upload images and files, so I had to put it into my google drive)
Your answer
Follow this Question
Related Questions
How do disable uGUI/EventSystem selection feature? 0 Answers
Making raycasts go to the centre of the screen 1 Answer
New UI - Ignore raycast where alpha is 0 2 Answers
Detecting game object under UI 2 Answers
How to activate a button? 1 Answer