My can see object is not working

hhyu

New member
Hello, may I ask why my can see object doesn't work? I tried to use Tag and Layer, neither of which partially passed
7c4ebc64dfac7329f895be90281d9f6.png屏幕截图 2024-08-15 162859.png屏幕截图 2024-08-15 163003.png
 
It's good that you have draw debug ray enabled. It looks like it's yellow. From the documentation:


Yellow means that another object is blocking the raycast. Do you have another object in the way? Maybe it's the second box collider? I would try with the most simple case to see what the issue is and then go from there. You should not need to use both a layer and a tag - only one is necessary.
 
Back
Top