How to console log what item I picked from the center of the camera

the ground and wals are rigid bodies with collision. would my ui mess it up?

I checked your project. Your script name doesn’t match with the actual names in the script. That’s probably why the script doesn’t work.

the script is not working yet can u go into further detail.?

You have to remove line 1 and line 20 of your script.

image

You also have to remove the raycast script, because it doesn’t exist.

image

You have to add your PickerRaycast script.

image

thanks

it is not console logging how can i fix this?

Please do not quote a part of script that is no longer related. This is very confusing for a user trying to help you.

Same problem as before. The script on your player entity does not exist, because the name is not matching with the name in your script. It’s case sensitive. Please remove the current script ‘pickerRaycast’ from your player entity and add your new script ‘PickerRaycast’.

Apart from that, there is missing a letter ‘s’ on line 13.

image

im sorry for my neglegence but to project is still not working

What’s not working? Have you followed the advice above?

i have followed your advice but the error is that it will not even run.

If you are talking about your third scene, then it’s because there is no camera in the scene.

the first person movement scene

I didn’t see anything wrong in the other scenes. If you get an error, please share a screenshot.

the console is not logging when i have mouse down

You did not. :sweat_smile:

The current script doesn’t exist:

image

Result should be:

image

currently i am frustrated when i put in the name correctly it formats it to be lowercase and nomater if i copy and past it it is not currently working.

After changing the name of the script, the script with the old name doesn’t exist anymore. That’s why you have to remove that script and add the script with the new name.

Your current script is not with is a lowercase?

2 Likes

no

the raycast script is not telling me what object it has hit