Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

the name 'CharacterMotor' does not denote a valid type - issue with unity 4 standard asserts prefab

Discussion in 'Scripting' started by JDVDeisgn, Apr 20, 2017.

  1. JDVDeisgn

    JDVDeisgn

    Joined:
    Oct 17, 2015
    Posts:
    148
    I was working on a 3d wanting to use a 3rd person character controller and thought I'd try and use the prefab for reference as I remember it worked well when I used it a while ago in unity 4. anyway, I imported the folder which worked fine in unity 4 into unity 5 and I get this error:

    Assets/Character Controllers/Sources/Scripts/PlatformInputController.js(5,21): BCE0018: The name 'CharacterMotor' does not denote a valid type ('not found'). Did you mean 'UnityEngine.CharacterJoint'?

    this is the line 5, which it refers to:

    Code (CSharp):
    1. private var motor : CharacterMotor;
    I have tried changing CharacterMotor to UnityEngine.CharacterJoint but that causes way more errors than it solves and definitely doesn't seem like the solution, so I just wondered what I should do as this has been annoying me for around a day now. I usually can figure stuff out on unity pretty well now but this is something that I can't figure out. I have also tried changing the line in question to something like:

    Code (CSharp):
    1. private CharacterController motor;
    but to no avail (just throws up another error)

    This is the only error, so if it could be solved it'd be great. I really hate the new 3rd person character controller in unity 5 btw, hence why I'm trying to get this to work
     
  2. JDVDeisgn

    JDVDeisgn

    Joined:
    Oct 17, 2015
    Posts:
    148
    I'll just bump this once
     
  3. Meri

    Meri

    Joined:
    May 25, 2013
    Posts:
    14
    What error does it show when you change it to
    Code (csharp):
    1. private CharacterController motor;
    ?