- Home /
CS8025 Error (Parsing Error)
Hello people
var defaultCameraAngle : float = 60;
On this line code, I am getting the CS8025 code error. I have no idea why...
Answer by rutter · May 17, 2013 at 12:39 AM
It looks like you're mixing up your scripting languages: the code you posted is Javascript, but the error you mention comes from the C# compiler.
If your script looks like this:
using UnityEngine;
using System.Collections;
var defaultCameraAngle : float = 60;
public class Foo : MonoBehaviour {
//stuff
}
It needs to instead look like this:
using UnityEngine;
using System.Collections;
public Foo : MonoBehaviour {
public float defaultCameraAngle = 60f;
//stuff
}
If that's not the problem, we might need more information.
Wow, that was dumb... Changed it, but now I have " BCE0044: expecting EOF, found '}'"
Eh, don't sweat it. Program$$anonymous$$g has a pretty hard learning curve.
That next error sounds like you have unbalanced {} brackets. Probably you have an opening bracket which is never closed.
Your answer
Follow this Question
Related Questions
How do I fix this really wierd parsing error? 0 Answers
Jukebox parsing error 2 Answers
CS8025 parsing error, can't find, halp ! 0 Answers
unity 3d - c# scripting problems 1 Answer
Unexpected "{" and parsing error (roll a ball tutorial) 1 Answer