- Home /
The question is answered, right answer was accepted
Gameobjects in Ignore Raycast layer still get hit by raycast.
I have some sphere colliders set as triggers that I need to ignore raycasts. I've managed to set them to the ignore raycast layer through bit shifting. (I know they're there, since Ignore Raycast shows up under layers in the inspector.) But, the raycast still seems to collide with those triggers. We cannot just disable Raycasts Hit Triggers, since we're using NGUI and that needs Raycasts to hit triggers for NGUI's mouse functions to work. Do I have to explicity tell the raycast function to hit all other layers, but the Ignore Raycast layer?
Answer by zerophase · May 07, 2014 at 11:21 PM
I managed to fix my issue. It turns out we had another trigger around our gameobjects that needed to ignore raycasts.
Follow this Question
Related Questions
Trigger and raycast error? 2 Answers
Can't click gameobject when over another trigger? 1 Answer
how can i raycast through triggers ? 1 Answer
Using raycasts and triggers 1 Answer
Is it possible to check how much a trigger is filled by %? 1 Answer