• 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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
1
Question by ToonDeJonge · Oct 13, 2014 at 02:07 AM · bce0018

Error: BCE0018

I have an error in a script. It's not mine script but I think its is a script from Unity itself (I downloaded AngryBots from the asset store). Everything went well, but maybe I deleted smt.

And if I put this script in comments, there only comes more errors in the place!

 #pragma strict
 
 public var qualityThreshhold : Quality = Quality.High;
 
 function Start () {
 
     if (QualityManager.quality < qualityThreshhold)
     {
         gameObject.SetActive (false);
     }
     enabled = false;
 }


error: Assets/Scripts/Fx/DeactivatorOnLowQuality.js(4,32): BCE0018: The name 'Quality' does not denote a valid type ('not found')

warnings:

invalid character

trict, var and : expected

Comment
Add comment · Show 1
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 robertbu · Oct 13, 2014 at 02:16 AM 0
Share

Please format your code. Edit your question, select your code, and use the 101/010 button.

2 Replies

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

Answer by Landern · Oct 13, 2014 at 03:51 AM

Based off the Implementation, you should have an enum some where that i know at least has a value of High. Looks like:

 enum Quality 
 {
   High, 
   OtherValue1,
   OtherValue2,
   Etc
 }

Other than High, i'm just adding filler. This enum type is missing or can't be found(renamed?). With that said, you're declaring a variable of that type on this line:

 public var qualityThreshhold : Quality = Quality.High;

and you're setting it to the enum value of High, but again it can't find it. Replace it, find it or define it and you're good to go.

Note: there are a couple other options that are unlikely but possible that i won't get into. You said you didn't write this, go to the source and get the missing implementation if necessary.

Comment
Add comment · Show 4 · 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 ToonDeJonge · Oct 13, 2014 at 10:03 AM 1
Share

Thanks for you help and time, but it doesn't work. I think it's easier to delete and download Unity back on my pc.

avatar image Landern · Oct 13, 2014 at 12:12 PM 1
Share

@ToonDeJonge, why would you re-install? Were you able to find the enum/class called Quality. The BCE0018 error/exception literally denotes a referenced type can not be found. Now if you did find it and couldn't reason why it wasn't able to find it(Unity) and you concluded there was an internal error, that makes sense. But if not, you're wasting your time redownloading and installing again, consider if you did the same thing as before you would get the same result.

avatar image Landern · Oct 13, 2014 at 01:28 PM 1
Share

@ToonDeJonge, if I helped, mark the question answered, if you did something else, else answer your question, mark it as the answer so people know in the future.

avatar image ToonDeJonge · Oct 13, 2014 at 01:46 PM 1
Share

It says that I need reputation to do such thing. Your anwser is in green, is that enough?

avatar image
0

Answer by ToonDeJonge · Oct 13, 2014 at 01:12 PM

It worked! My thanks to you sir!

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Declaring char or string type variables returns errors 2 Answers

I can rotate but not move or I can move but not rotate, console messages. 0 Answers

Error BCE0018: The name 'World' does not denote a valid type ('not found'). 1 Answer

Scripting error 1 Answer

Give help to fix this error 3 Answers


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