• 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
1
Question by rsud · Aug 04, 2011 at 03:43 AM · errorupgradebce0018unity3.4

What happened to CharacterMotor in 3.4?

New to Unity and still recovering from upgrading to 3.4.

I upgraded to 3.4 and then started Unity and selected my game to load.

Immediately got hit by a bunch of errors from standard asset scripts. Learned (with forum help) I had to delete and reimport them.

Now I have the following remaining error:

Assets/WCW/Scripts/Khelna_FPSController.js(1,21): BCE0018: The name 'CharacterMotor' does not denote a valid type ('not found'). Did you mean 'UnityEngine.CharacterJoint'?

Here is the line of code:

private var motor : CharacterMotor;

What happened to CharacterMotor in 3.4? Is there documentation that I have missed that tells me what I should do?

Thanks for any 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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by aldonaletto · Aug 04, 2011 at 04:35 AM

This error indicates the script CharacterMotor.js was not found, or has not been compiled yet. When a script is compiled, Unity creates a new type with the same script name (but without quotes or extension), which is not being found at this compilation stage. Could it be caused by compilation order? (take a look here)

EDITED: To be more specific: CharacterMotor.js doesn't exist in your project, but the script Khelna_FPSController.js declares the variable motor with this type. (CharacterMotor.js is a script used in the Assets/Standard Assets/Character Controllers/First Person Controller).
At the end of 3.4 What's New, they mention that improved type checking could cause some scripts ok in 3.3 to produce errors in 3.4.
You have two alternatives: import the package Character Controller to your project (menu Assets/Import Package...) or remove the script Khelna_FPSController.js from the Assets folder, if you're not using it at all (every script in Assets or its subfolders is compiled and must be free of errors, even if you don't ever use it).

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 rsud · Aug 05, 2011 at 05:03 AM 0
Share

This does not appear to be my issue. I can't find Character$$anonymous$$otor.js in my 3.3 project (I saved a copy). And it is not in 3.4. I don't think this relates to a missing script.

avatar image aldonaletto · Aug 05, 2011 at 11:18 AM 0
Share

That's exactly the problem: you don't have Character$$anonymous$$otor.js but Assets/WCW/Scripts/$$anonymous$$helna_FPSController.js declares a variable of type Character$$anonymous$$otor. Take a look above: I edited my answer to give you more details.

avatar image rsud · Aug 08, 2011 at 03:24 PM 0
Share

Thanks for the further clarification.

I did re-import all the standard assests and standard assests (mobile) but took a bit and had to learn that right clicking and selecting reimport is not a reimport...

That got rid of a bunch of errors but this one remains. Isn't Character$$anonymous$$otor a "standard" Unity object like transform, or gameobject, etc....?

avatar image aldonaletto · Aug 08, 2011 at 06:39 PM 0
Share

No, what is standard is the CharacterController, a kind of rigidbody+collider equivalent designed to be used in live creatures like the player, enemies, monsters etc. Character$$anonymous$$otor is the script Character$$anonymous$$otor.js (one of the Unity's First Person Controller prefab scripts), and the script $$anonymous$$helna_FPSController.js needs it. Are you using this $$anonymous$$helna-whatever script? If not, you can move it out of the Assets folder, and this will stop errors.
If you're not sure, however, import Character$$anonymous$$otor.js by clicking the menu Assets/Import Package/Character Controller: a window named Importing Package will appear, and you will see the Character$$anonymous$$otor.js among other itens - make sure it's checked and click the button Import.

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Editing the jumppad from the 3rd person tutorial 2 Answers

Unity giving me some c sharp errors, cs1061 1 Answer

Missing Script? 1 Answer

how do I fix following errors? help please 1 Answer

disabling a script when collide with a cube 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