raycast hit work on objects without trigger?

I can’t get a raycast hit to identify wheather the hit has a particular tag unless trigger is checked on.

Is this how it is supposed to work?

you can raycast against objects that have colliders. Then you can read the tag of the hit.

Weird… With the length of the ray I have currently set… when used with trigger colliders. It works fine. But with out the triggers. I had to increase the length of the ray for a hit to register.