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. Dismiss Notice

Cant find Character Motor script

Discussion in 'Scripting' started by Disolution, May 12, 2014.

  1. Disolution

    Disolution

    Joined:
    Feb 24, 2014
    Posts:
    71
    Just like the title says, when i try to use it or create a object of it / getcomponent of it can't find teh character motor anywhere besides character controler, i wanted to disable the jump the moment the character left the ground but without being able to access teh character motor i cant do this...any ideias on why unity cant manage to find it?
     
  2. MysteriX

    MysteriX

    Joined:
    Apr 8, 2014
    Posts:
    54
    Do you work with C#? And is the Character motor in javacript? So you have to move the javascript files in the standard assets directory i think. or you translate the scripts to the same language. I have had the same problem and this was the solution for it.
     
  3. Disolution

    Disolution

    Joined:
    Feb 24, 2014
    Posts:
    71
    Working with C# and motor is JS....is there a specific place where i have to put the Motor script or can i leave it anywhere besides the imported assets packages? like put in a made up folder within the project?
     
  4. MysteriX

    MysteriX

    Joined:
    Apr 8, 2014
    Posts:
    54
  5. Disolution

    Disolution

    Joined:
    Feb 24, 2014
    Posts:
    71
    tried but still gives error when i try to build triggering all over the js after putting it on teh same assembly as of the others scripts
     
  6. MysteriX

    MysteriX

    Joined:
    Apr 8, 2014
    Posts:
    54
    Do you get errors in Unity or in MonoDevelop? Mono does not notice that you have moved the motor script to the correct folder. Please check if you have compiling errors in Unity.

    In which folder is which scripts now?
     
  7. Disolution

    Disolution

    Joined:
    Feb 24, 2014
    Posts:
    71
    THe C# is in the main root while teh js is in the Standard Assets, being that C# is in the Assembly CSharp and the js is in the unity assembly first pass on the mono develop...how cna i check it on unity?