Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 sickrick6 · Sep 01, 2012 at 01:30 AM · lostneediam

All compiler errors have to be fixed before you can enter playmode?

I am designing an FPS on Unity using a tutorial that I downloaded on the Unity website, and the tutorial tells me to hit "play" after placing the First person Controller and deleting the main camera. It says that I should be able to move around the map with the WASD keys. I did everything the tutorial told me to do, but for some reason when I hit "play", it says "All compiler errors have to be fixed before you can enter play mode!". I have no idea what to do about this and I NEED HELP.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by DaveA · Sep 01, 2012 at 01:35 AM

It's too bad that Unity does not update their tutorials. They worked ok in the version they were released for.

So what happened is Unity put stricter coding standards into the compiler so it complains about things more. Basically to prevent sloppy coding. What you are finding is evidence of that.

That said, unless you can get a copy of a fixed project, you'll need to fix these problems. Look at it as a learning opportunity. You will get your feet wet with coding quicker.

So yes, you have to look at the console to see what the errors are. Double-click one, it should open the text editor right to the offending line. They use the error message as a clue. Does it say 'protected or private member inaccessible due to permissions' or something like that? That means you need to find the component (script) that declares that variable or function, and add 'public' or remove 'private' from it.

Google is your best friend here. We've all done this: copy from the console, paste into google, hit search. I don't think I've ever come up empty that way.

Comment
Add comment · Show 1 · 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 reptilebeats · Sep 01, 2012 at 02:17 AM 0
Share

i believe these so called unity tutorials aren't actually tutorials, but rather a walkthrough demo to show of unity's features of the current release. a bit like the demo's i saw from the unite presentation online which will probably come with unity 4. (only missed unite cos my kid was born today yaay)

avatar image
0

Answer by ramonfr · Sep 01, 2012 at 01:33 AM

It simply means that there's an error in the script, so you need to fix it before running the game.

Isn't there any other error message above this one? If yes, click over it and Unity will take you exactly to the line where the error occurs in the script.

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

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Need help with a shop script.. :/ 1 Answer

Keep getting BCE0017 error 1 Answer

Help with Ragdoll 2 Answers

Object doen't move even though i did according lesson 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