Error in run unity

Assets\Scripts\Control\PlayerController.cs(19,52): error CS0103: The name ‘GetMouseRay’ does not exist in the current context

Welcome to the community,

Can you share your script to better see what’s going on

Also a picture of your unity editor would be helpful.
Thanks

This most likely means that when you created the GetMouseRay() method, it wasn’t spelled exactly as you’re trying to use it here. It could be as simple as accidentally naming the method GetmouseRay(). Since C# is case sensitive, the compiler would see these two symbols differently.
Paste in your PlayerController.cs and we’ll take a look.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms