Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by gamedesigner43 · Jun 14, 2011 at 04:12 PM · c#parsingcs8025

Parsing error in C#

i keep geting this Assets/Standard Assets/MenuObject.cs.cs(4,1): error CS8025: Parsing error

this my code using UnityEngine; using System.Collections ;

; public class MenuObject; MonoBehaviour ; { public bool isQuit = false ; void OnMouseEnter() ; { Renderer.material.color = Color.red ; } void OnMouseExit() ; { Renderer.material.color = Color.white ; } void OnMouseDown() ; { if(isQuit) ; { Application.Quit() ; { else; { Application.LoadLevel(1) ; } } }

Dupe'd here.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tnetennba · Jun 14, 2011 at 04:37 PM 1
Share

there is button that you use to mark text as preformatted it is the one with 1's and 0's all over it.

It looks however that you have semi colons all over the place.

 using UnityEngine;
 using System.Collections ;

 public class $$anonymous$$enuObject: $$anonymous$$onoBehaviour
 {
     public bool isQuit = false ;
     void On$$anonymous$$ouseEnter()
     { 
         Renderer.material.color = Color.red ;
     } 
 
     void On$$anonymous$$ouseExit() 
     { 
         Renderer.material.color = Color.white ; 
     } 
 
     void On$$anonymous$$ouseDown()  
     { 
         if(isQuit) 
         { 
             Application.Quit() ; 
         }
         else 
         { 
             Application.LoadLevel(1) ; 
         } 
    }
 }
avatar image almo · Jun 14, 2011 at 05:12 PM 0
Share

If you're going to post the same code in another question, then you should accept an answer for the other question you asked.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Ricardo Arango · Jun 14, 2011 at 05:04 PM

Please try understanding your problem before posting for help. There are many tutorials to learn Unity scripting:

http://answers.unity3d.com/questions/12321/how-can-i-start-learning-unity-fast-list-of-tutori.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by DaveA · Jun 14, 2011 at 06:11 PM

Is that right, that your file is called MenuObject.cs.cs ? If so, change it to just MenuObject.cs

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

I can't figure why I'm getting a parsing error with my C# Code. 1 Answer

Parsing error. No idea what it is or what the problem is. 2 Answers

Deserialize nested Json data 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges