The original address: https://support.unity3d.com/hc/en-us/articles/206126976-What-is-CS1525-
symptoms
You see the following error in the Console window:
Error CS1525: Unexpected symbol ‘__, expecting’.
why
This error is raised when an invalid character is encountered in an expression. For example, the if statement in the following example does not allow the symbol “a” to follow the if statement.
The error message for this example is as follows:
Error CS1525: Unexpected Symbol ‘a’, expecting ‘(‘
The solution
Make sure the correct symbol appears in the expression. In this case, we need to add a “(” symbol to the right of the if statement, because the missing left parenthesis makes” a “an invalid symbol.
For more information
https://msdn.microsoft.com/en-us/library/3hdyz4dw(v=vs.90).aspx
Read More:
- Error cs1010 cs8025 cs1012 cs1525 common document error resolution
- What is cs0120 error
- The build report plug-in reported an error in importing unit script (BRT_ Util.cs :error CS1525: Unexpected symbol `;’, expecting `)’, or `,’)
- Unity report error CS0619: ‘XRDevice.isPresent’ is obsolete
- Unity reports an error cs0619: ‘guitexture’ is obsolete
- Unity2019.1.02f error cs0104: ‘minattribute’ is an ambiguous reference between
- Compiler error message: cs1056: unexpected character handling
- Photoshop CS6 detailed installation of graphic tutorial
- [reprint] method to solve error 16 in illustrator CS6
- Adobe Photoshop CS6 download and installation and error:16 The solution of
- [Fixed] Unity error CS1704: An assembly with the same name `UnityEngine.UI’ has already been imported
- Unity WebGL error CS0117: ‘NetworkTransport’ does not contain a definition for ‘SetMulticastLock’
- Generate template asp.net Cs1010: newline in constant
- Unity development memo 000025: error cs0433: the type ‘task’ exists in both ‘xxx’ and ‘YYY’
- Error cs1002:; expected error resolution
- error CS0234: The type or namespace name ‘UI‘ does not exist in the namespace ‘UnityEngine‘
- Unity3D error CS0227: Unsafe code may only appear if compiling with /unsafe…
- About error CSC in c# vs: error cs0006: metadata file could not be found
- In Java, int is converted to string, and zero is added before the number of bits is insufficient
- When the spring MVC project is running on idea, an error is reported when the controller is a null pointer