The AnimationClip ‘Idle’ used by the Animation component ‘3rd Person Controller’ must be marked as Legacy.
Im getting this, after ( to be sure) reimporting ‘character controller’ into unity ( asset), and dragging camera into 3rd person controller script ‘camera transform’…is ther some repair I need to do on unity ?
You need to click on the 3rd person controller source model inside the Project folder and then click on the “Rig” button in the Inspector and set the rig to Legacy and hit apply.
This is necessary because there are two incompatible animation systems in Unity: Mecanim and Legacy. Mecanim was added in Unity 4. That video was probably made before that and didn’t need the explanation.
Btw, unfortunately there doesn’t seem to be a ‘3rd person conrtroller’ to click on in projects > characters > source,just a ‘constructor’ which has a rig, but it was already set to legacy.
I looked in all other folders inside source, but I see no 3rd person controller source model anywhere .
So I thought I’d try deleting that entire character controller folder, reimporting asset , and I still get this on trying to go into game:
NullReferenceException: Object reference not set to an instance of an object
ThirdPersonController.UpdateSmoothedMovementDirection () (at Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js:129)
ThirdPersonController.Update () (at Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js:302)
Are you using the standard third person controller script that comes with Unity? If so, and if I remember correctly, that is the error you get when you have no camera in the scene that is tagged “MainCamera”. So either add a camera and tag it or just tag the one you have in the scene if already there.
TY so much for watching this thread and trying to fix this.
Yes it is the standard 3rd person controller under standard assets, but this is the DIR folder where it is:
C:\Users\GaillardLee\Documents\qumran\Assets\Standard Assets\Character Controllers\Sources\PrototypeCharacter
I can’t find any other 3rd person controller source anywhere else.
I renamed it to MainCamera, its listed ( I dragged it in) MainCamera under controller script >camera transform, but I still get the error, and on pressing play , the character is running, but I have no camera control, no doubt due to the error.
Tags aren’t making the errors go away, and I still have no camera control at all. A few keys move character/camera , but in jerky ways, not continuous fluid movement. Character stays in one spot, no matter what keys I use.( cursor vs wsad)
I still get these console errors:
The AnimationClip ‘Idle’ used by the Animation component ‘3rd Person Controller’ must be marked as Legacy.
The animation state Idle could not be played because it couldn’t be found!
Please attach an animation clip with the name ‘Idle’ or call this function only for existing animations.
UnityEngine.Animation:CrossFade(String)
ThirdPersonController:Update() (at Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js:337)
THe animation one comes up about 30 times, no doubt a per frame thing, but anyway there it is.
I’ve no idea how to fix any of those, short of finding ‘source’ as someone above noted, but I cant’ find even that.
Also and this is a weird one; when I go to choose animation from list, walk run etc.,there are ‘3’ of each. ???