- Home /
BCE0043 unexpected token! pls help.
private var ray : Ray;
private var rayCastHit : RaycastHit;
function Update() {
if(Input.GetMouseButton(0)) {
ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(ray.rayCastHit)) {
transform.position.x = rayCastHit.point.x;
}
}
} by the way i got this code from youtube tutorial making a ping pong game. But i have this error at line 10 and 11. please help why is this wrong but in his tutorial this is correct
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613085802im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
BCE0044 unexpected char: 0xFEFF 2 Answers
BCE0043 unexpected token! pls help. 1 Answer
Invalid Characters in Path 1 Answer
Sending email via APK version 1 Answer