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 sunspider · Feb 26, 2012 at 12:37 AM · newbiecompiler error3dplatformtutorial

3dplatform tutorial compiler errors out of box

Hi Trying to learn unity... the platform tutorial seems like a great way, but... I got as far as page 12, where you add Lerpz and press play. It says I need to fix compiler errors before entering play mode. So I tried reloading the scene and just hitting play from the get go. Same error. As a total noob, I don't even know where I can look to see what the compiler errors are. Also, it wanted to upgrade the project before starting, so maybe this tutorial is for an older version of Unity? Help me out! Thanks

Comment
Add comment · Show 3
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 syclamoth · Feb 26, 2012 at 03:28 AM 0
Share

Which version of Unity are you running? Why don't you open up the console, and actually tell us what kind of errors you're getting?

avatar image sunspider · Feb 26, 2012 at 06:07 AM 0
Share

I am using version 3.5.0f5 I did not know that the actual errors show up on the console. I'm completely new to Unity, so please have a little patience.

Console reveals: Assets/Scripts/Camera/FadeoutLineOfSight.js(125,42): BCE0067: There is already a local variable with the name 'new$$anonymous$$aterial'.

avatar image mrblurgle · Jul 20, 2012 at 11:26 AM 0
Share

I have the same issue under 3.5.3f3. alski's solution worked for me.

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by alski · Feb 29, 2012 at 01:00 AM

Ok, I fixed this issue though I don't know if it's the right solution.

I found the "FadeoutLineOfSight" Script under Project Scripts/Camera/FadeoutLineOfSight opened it up, dropped down to line 125 and removed the "var" from in front of newMaterial.

It now plays and I haven't witnessed any other issues as a result of the change.

Comment
Add comment · Show 5 · 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 sunspider · Mar 06, 2012 at 03:03 AM 0
Share

Sweet. That worked... will post again if I find any repercussions down the road.

avatar image DGArtistsInc sunspider · Mar 06, 2012 at 04:04 AM 0
Share

click the checkmark on his answer that says that this question has been answered!

avatar image sunspider sunspider · Mar 06, 2012 at 04:57 AM 0
Share

I don't see the checkmark. Could it be that I don't have that option as a newcomer? I also can't give it thumbs up...

avatar image GlennC sunspider · Nov 26, 2012 at 08:28 AM 0
Share

Same error using this tutorial project in Unity 4. The above fix works though either comment out double \\ on line 125 and 126 or delete them and save the file again. your then good to go!

Show more comments

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

10 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

Related Questions

Using the increasing and decreasing value function to deal damage 2 Answers

How To Maintain Same Space Between Every Random Shuffle Array Object 0 Answers

How do I fix compliance error? 1 Answer

Unhandled Exception: System.UnauthorizedAccessException 1 Answer

"using UnityEditor;" throws an error? 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