Pickups raycast not working

I couldn’t get my pickups to work, the cursor didn’t change as if the raycast wasn’t working. I put some debug logs and indeed the raycast didn’t work.

I found out eventually that the Layer which was set for my pickups was “Ignore Raycast” and after I switched it to default, it was fixed. I’m pretty sure though that this has been set in a previous lecture because something was going on with the pickups and the raycast (I think the movement was somehow blocked).

Privacy & Terms