Mouse Selection Trouble
Posted: Tue Mar 24, 2020 7:21 pm
Hi there,
I'm trying to make it so the player can use objects by clicking on them, and I've set input to "Mouse 0". I've tried to start a conversation on the use of both a 2D and 3D object, both of which have colliders and a "usable" component.
From what I can tell the raycast is hitting the 3D object, but it's not working and I'm not sure why. Also, is there any way to use the raycast with a 2D sprite? Thanks.
I'm trying to make it so the player can use objects by clicking on them, and I've set input to "Mouse 0". I've tried to start a conversation on the use of both a 2D and 3D object, both of which have colliders and a "usable" component.
From what I can tell the raycast is hitting the 3D object, but it's not working and I'm not sure why. Also, is there any way to use the raycast with a 2D sprite? Thanks.