I was trying to learn locomotion so I can apply it to my characters, but It’s not making the menu button like it says in the documentation
“Check that the menu bar in Unity includes the menu Tools > Locomotion Initialization but don’t use it yet. You will need this menu later. If this menu is not present, there is something wrong. The menu should be generated by the script LocomotionEditorClass.cs in the folder Assets > Locomotion System > Editor.”
When I import the stuff into my assets folder I get this error message
"Assets/LocomotionStuff/Locomotion System/Editor/LocomotionEditorClass.cs(314,73): warning CS0618: UnityEditor.EditorGUILayout.ObjectField(UnityEngine.Object, System.Type, params UnityEngine.GUILayoutOption[ ])' is obsolete: Check the docs for the usage of the new parameter ‘allowSceneObjects’.’
I noticed it says the word “obsolete”. Does Locomotion not work with the new version of Unity?
Nope. It just means the method EditorGUILayout.ObjectField() method in the locomotion script is outdated and since in the newer unity, might have broken it. Basically you need just to check out the docs and manually edit that line.
Hello, I have a problem like that.
I decompresed the LocomotionSystem folder, and was reading the doc, but I don’t get the Tools menu bar. But I don’t receive any error message.
I don’t know what can I do…
Thanks for providing the code. Did you manage to fix the issue. I had copied the code into the old file and re-imported all the assets. Still the menu does not show up. Is there any other step that I am missing?
Sorry, I really should have checked this thread… Bit late now!
For anyone else, if you import the package and use the code I provided above, you just need to add the Leg Controller script to your rig. The initialize button is found in the Inspector, rather than a menu.
Sorry for digging up old thread, Just wanted to say thank you for posting your fix… I’m using unity 3.5 with bootcamp adding my own character… Wouldnt initialize now it does and working brilliant, Thank you.