Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by Brack · Apr 20, 2013 at 03:45 PM · animationblenderthirdpersoncontroller

ThirdPersonController Script doesn't use animations on model imported from Blender

Hi I'm pretty new to Unity and have seen a few tutorials / forum posts on how to animate a model in Unity.

I've imported the ThirdPersonController and camera scripts so the camera follows my model around the scene. However even after attaching the animations to the Idle / walk / run / jump animation variables in the script I get the error:

Ignore only left for context Please assign a target to the camera that has a ThirdPersonController script attached. /ignore

The character you would like to control doesn't have animations. Moving her might look weird.

I know this error comes from the script itself but I don't know what more I have to do so the script knows the animations are attached.

I know the animations work because I saw a different post that talked about making an animation controller. I made one and added the animations to that. When I set one as default the model does that continuously when I start the scene. I just can't get it to work on the default script.

If you need more information to help me please let me know as this has been driving me mad!

Comment
Add comment · Show 4
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 BPR · Apr 20, 2013 at 04:36 PM 0
Share

Hi, i hven't used the 3rd personcontroller so far, but from what i assume how it works you have to add the 3rd person controller script to your camera then in the scene view select the camera and on the right where you can see the script attached should be a missing reference, drag and drop the gameobject which should be followed by the camera there

avatar image Brack · Apr 20, 2013 at 04:54 PM 0
Share

To be honest I ballsed up the question a bit!

The main issue I'm having is the animations and the error I'm getting is:

The character you would like to control doesn't have animations. $$anonymous$$oving her might look weird.

I get that other error too but its not the one I wanted to ask about :/

avatar image BPR · Apr 20, 2013 at 06:56 PM 0
Share

Does your gameobject have a animation component in scene view? You normally don't have to assign the animations in script. You can add them to a animation component in scene view and then call them by their name in script like: animation.Play("walk");

avatar image Brack · Apr 20, 2013 at 09:55 PM 0
Share

In scene view the gameobject shows the script as a component, it has animator as a component but not animation and in the script it creates variables like:

public var jumpPoseAnimation : AnimationClip;

so you can assign the animation to Jump Pose Animation in the third person controller component

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by BPR · Apr 21, 2013 at 08:03 AM

Ok i think i get it now, you want to use a custom model with the 3rd person controller, right? First make sure that you export your charater in Blender with animations and sceleton, i recommend exporting to .FBX format since unity (slowly) converts all meshes to this anyway. Then drag and drop the fbx file to your project view, select the now imported mesh and in the inspector scroll down until you see Animations, check split animations and add the name, start frame and endframe for each animation. Name your animation slightly diffrent from the standart third person controller scripts in order to avoid confusion for example walk1, idle1, etc. For walk, run and idle animations select "Loop" under wrapmode, apply the changes and drag and drop your mesh into the scene view. It should already an animation component, add a character controller component and the third person controller script and third person camera script. In the third person controller script select the missing animations by clicking on the little dot on the right after each missing clip. And in third person camera script under camera transform select your main camera. Now you should be able to enter play mode and walk, run and jump around.

Regards BPR

Comment
Add comment · Show 2 · 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 Brack · Apr 22, 2013 at 05:55 PM 0
Share

Yeah thats what I want to do, it all looks similar to what I did apart from the FBX format. I'll give it a go and update this when its done. Thanks!

avatar image Brack · Apr 22, 2013 at 06:54 PM 0
Share

I've done that but get the same effect, the animations are loaded into the third person controller but don't actually trigger :/

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.

Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Blender Animation Looping Delay Problem 2 Answers

hypercube animation 2 Answers

Generic root motion jitter? 0 Answers

FPS Bow Animation 0 Answers

Unity not importing blender animations at all 7 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