Camera.main.ScreenToWorldPoint(Input.mousePosition)
Error: Camera' does not contain a definition for main’
GetComponent().ScreenToWorldPoint(Input.mousePosition)
Error: Type Camera' does not contain a definition for ScreenToWorldPoint’ and no extension method ScreenToWorldPoint' of type Camera’ could be found (are you missing a using directive or an assembly reference?)
This is almost always the result of you creating a script with the name/class of 'Camera', which overrides Unity's Camera script.
– robertbu