"Assets\MouseLook.cs(29,62): error CS1003: Syntax error, ',' expected" (824586)

Errors are there to help you. It’s a good idea to try and learn how to understand them. Try to apply the breakdown in this post of your original error to the new error you’re receiving. If you don’t understand a word, don’t just gloss over it. Ask what the word means here, or research it elsewhere. Cultivating a habit of research will pay dividends for you in every part of your coding journey.

Here’s a breakdown of your specific error, but try applying this process to any other error you may encounter as well:

This section of the error is the prefix, and the format is standard across all messages:

Assets\MouseLook.cs(29,62) → The compiler encountered an error at this file: Assets\MouseLook.cs, at this position (line, column): (29,62)

error CS1003 → A technical code that refers to this specific type of error. When in doubt, try googling the code in question (eg. “c# CS1003” or “unity CS1003”). It will probably lead you to a page like this ( CS1003), which will provide more context for what the error is and why it occurs. This is a great last resort when trying to figure out why an error is happening. It will also often lead you to a helpful StackOverflow post, or even right back to this forum .

The rest of the error is the error message itself:

The error message varies wildly from error to error. For many common errors you will be able to copy paste this section directly into a search engine and find many articles/forum posts/etc. on what it means and why it happens.

Syntax error → something is wrong with how the code is formatted.

',' expected → The compiler was expecting a comma at this location but didn’t find one.

All of the above boils down to this:

On line 29, you forgot a comma between xRotation and 0f:

transform.localRotation = Quaternion.Euler(xRotation 0f, 0f);
9 Likes
Movement programming
so i am getting this error and i cant figure out whats the problem (20,21): error CS1002: ; expected
NavMesh agent is getting roated -180 on x value, need help.
no x movement in the air (while jumping)
How would you change this to work for an Enemy npc
Assets\Characters\PlayerMovement.cs(33,54): error CS1001: Identifier expected
Why it doesn't work (829428)
hi i am Programming with c#. I have an errorand i don´t know how to fix it. Please help !
help on ground check
error CS1061: 'List<GameObject>' does not contain a definition
moving object help
Change de inputfield value qith script
Drawing free lines is displaced on 34" monitor
Help (827818)
ERROR CS1513 :} EXPECTED
Can't change transform of an object, called from another object(script)
How to get the position of an object from another script and force the object to move to the resulti
Buttons not working (830451)
Input Key to Accelerate Player
'Chunk' does not contain a constructor that takes 2 arguments
HOW TO FIX IK PROBLEM (HELP WANTED)
HOW TO FIX .... IS INACCESSIBLE DUE TO ITS PROTECTION LEVEL
How to make management on Android
(Noob question) Error CS1003: Syntax error ',' expected
cannot convert from 'UnityEngine.Collision' to 'UnityEngine.Rigidbody'
Target Killing
I need help with MainMenu
Se requiere una referencia de objeto para el campo, método o propiedad 'Sistemadepuntos.Partida.punt
The script don't inherit a native class that can manage a script. (844025)
New to Unity and require some assistance
Many errors CS0246, CS0117
Unity 2019.2.21 to 2021.1 error. Need help upgrading
"How to fix ""Error CS1022: Type or namespace definition, or end-of-file expected""" (839080)
Syntax Error - I don't have a license
Camera not rotating inside IF statement
Problem (825113)
How to know the force on a rigidbody 2d?
Having Difficulty With 3D Movement Script on New Project (Beginner User)
Different Menus
Error: Non-invocable member 'CameraManager.cameras' cannot be used like a method.
Error CS1010
Need help (837524)
Mining system on Unity C#
Hey Guys Can U Help Me?
Help! (830530)
Problem with my script lines, cant solve the error.
cs1002 error how do i fix?
Error csharp
error CS1513 AND CS1002
Im New and had a CS0246 Question.
Scripting Error (829607)
I bet, these errors shouldn't be here. Help.
Button.OnClick() is not evoked
Numerous errors? I followed a tutorial but it seems to not work for me
How can I swap any card from above to any card from the bottom?
Error #CS0116 (New C# and Game Dev Question)
Error CS1003 Syntax error "{" expected
UNITY 4.0 C# ISSUE WITH I THINK GRAVITY OR SOMETHINGS LIKE IT
Thing being dumb and pretty much saying everything is the problem
Error CS0111 (not a bug)
How to Change color to 4 object and move up and down more object at the same time
I keep getting error code CS1001
Script Moving Problems
I got this invalid token error and I don't know how to fix it.
need help with error cs0246
How can I make a trigger in 2d
Endless Runner game-Sprites with Unlit/Transparent shader dont appear in the game mode
(SOLVED)
i have there errors can u help?
So I just started learning and I need some help
Help with this box
i take this script from youtube and he take me to some position when i click how to change it
Assets\Tests\NewBehaviourScript.cs(28,43): error CS1002: ; expected
I am using a book to learn unity, and there is some GUI code that doesn't seem to be working.
Trouble making my character run instead of walk
Identifier expected error (826584)
NullReferenceException: Object reference not set to an instance of an object CameraOrbit.LateUpdate
I have a code by idk how connect it to the fbx model from blender (839059)
Im getting error cs0115
Acceleration in Character Scripts
Cannot implicitly convert type string to bool. PLEASE HELP!!!
how do i fix this health bar?
Help with the code (826905)
Is there anything wrong with this script?
Error CS1061 (847258)
Error (853653)
Difficulty (Easy Normal Hard) script that increases AI attacks
why is jumping not working please help
The character only picks up one item
Defeat a enemy and victory message to appear, with trouble
Error CS0246 (843867)
Help! ( error CS1003: Syntax error, ',' expected
Hello, I have come to ask for help with this script that causes me a problem because it has the erro
Unity Code Help
Who can help me solve my problem?
Hello I need help to solve this script I do not know how to solve it because it tells me that it has (839052)
Save and load system not working
Why does killing the zombie break the music? And how do I fix this?
How to change the value of ToggleGroup to a string? And how to pass Togglegroup values to WWWFrom?
Can't Get This Code To Work
Muzzle Flash is not working Plz help
Snap to grid (829084)
I want the bullet to shoot at the center of the screen
Problems with FPS camera.
Can somebody help me with jump script?
How to fix these FirstPersonController Standard Assets errors?
Unity 2019.4.23f1 Broke Prefabs and Project - NullReferenceException, ArgumentNullException
Taking key with button
Hello I need help to solve this script I do not know how to solve it because it tells me that it has (844798)
Jump (846513)
day night cycle
Hi! I have a little problem with ''food spawner" for snake.
script with an error.
Can't make my player movement stop after release button
Looking and moving
Error expected } (832760)
Problem with moving Character Controller (translation of keyboard control to buttons).
cant find the problem
ScriptableObject array
How to use "is not null" in unity?
Assets\Scripts\PlayerController.cs(34,57): error CS1003: Syntax error, ',' expected
Change direction of an object 2d
Simple coding issue I am not equipped for. Please Help!
Sorry but why this script didn't working?
I do not know where the error! Could you help me to check the two scripts, please?
Script errors (828688)
Help converting this ini to a string.
Errors when compiling the project
Jump Script (845933)
Error CS2015, please help!
I need Help I don't Know why this is not working im new to Unity So i may be under looking something
problems with my fps controller
Mouse script dont working
When object A hits object B number go down
how to fix this code error plzzz
C0246 error
translation of cube
Unity Stops working...after i clicked play button and and spawner scripts active
Help with syntax!
How Can I fix this?
Trying to destroy enemy ship piece by piece
I want to enable PlayerPrefs to the text so it display the last silder value on Start
I'm having problems with setting up a multiplayer mode
How do I change tiles on a tilemap based on a two dimensional integer array?
NullReferenceException (834677)
Help required, error CS0131
Many errors
when i type simple code such as Debug.Log("hello "); it says too many characters in character liter
Assets\angle\Script\outvolt.cs(10,9): error CS0102: The type 'outvolt' already contains a definition
Scripts for a Pooltable [udon] not working. Monobehaviour issue +
Error CS1022 Type or namespace definition, or end-of-file expected can you tell what's wrong?
Error CS1513: } expected (825474)
Help (892573)
Rotation continuing after key lifted
Assets\Player Look.cs(24,22): error CS1002: ; expected
Jump to start of IF-Statement
My code has no errors but it does not work.
Error CS1061 (840530)
Whats Wrong With My Code?
I need help it keeps on saying The name 'i' does not exist in the current context on line 19 21. (835035)
Non-invocable member 'Teleport' cannot be used like a method.
I have a problem (835319)
I can't play my game
A bug with my terrain generator
Timer help (842469)
unity error cs1002 ; expected
I'm getting this error: the modifier public is not valid for this item
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DroneMo
transform of a gameobject
Code error (827652)
"Syntax error, ',' expected" (828423)
How do I make my code work?
Script not working (839056)
C# Health and Damage Script help needed
error cs1002 expected
SceneMangement compiling errors
CS1002 (25,31) pls help
Why cant my script work?
how to norlmalize rotation if the plane reach the direction
I have error cs0501
I want to connect float to text mash pro
Script error (834339)
Clicker. Doubling the purchase price