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 greatwhiteshark17283 · Jun 25, 2013 at 01:26 PM · animationfbxplay

Why can't I get animations to play?

I made this character in Blender and exported it as a .FBX file. The animations didn't show up so I switched the rigging to humanoid and now I can see the animations in the inspector. When I try to put the model in the scene, the model doesn't play any animations. I added the animation component and selected the animations that the character can play. I even made this script to try and get the animations to play:

 var animationToPlay : String;
 
 function Update(){
     animation.Play(animationToPlay);
 }

I can't think of anything else that could be causing it not play. When I add that script, the console says that the animation can't be found.

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 daivd.ramz · Jun 25, 2013 at 01:41 PM 0
Share

do you try animation.CrossFade("anim",0.5)?

and what is your Wrap$$anonymous$$ode ?(loop,once,default or ping pong)

avatar image Stopsecret · Jun 25, 2013 at 02:44 PM 1
Share

kyleyo9, make sure that the animation component attached has the animation that you want to play already in the drop-down list. I would also reccomend setting the type of animation to LEGACY. I think in 4, the default is the animator. If you have an ANI$$anonymous$$ATION component, and not an ANI$$anonymous$$ATOR component, and if the animation is in the drop down list, and you make sure that the name matches exactly (even case-sensitive i think) then I don't see why it shouldn't work unless some other component or script is controlling it.

avatar image greatwhiteshark17283 · Jun 25, 2013 at 02:50 PM 0
Share

Thanks Stopsecret, Legacy makes it work.

avatar image Stopsecret · Jun 25, 2013 at 03:54 PM 0
Share

No problem ;)

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by TonyLi · Jun 25, 2013 at 02:54 PM

If you're using the Animation component, you need to import the rig as Legacy.

If you import the rig as Humanaoid, you need to use an Animator component (Mecanim) and an Animator Controller. You can't use animation.Play().

Assuming that you're using the legacy animation system (and not Mecanim):

Open the Animation view window (Window > Animation). Select your character. Then select an animation clip from the drop-down menu. This will allow you to view (and edit) the animation curves defined on each bone.

If you see "Clean Up Leftover Curves," then for some reason your imported model's skeleton doesn't match the skeleton defined in the animation clip.

Otherwise, you can press the play button to play the animation clip your character in-editor.

Make sure all this works before writing any code.

Comment
Add comment · Show 1 · 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 greatwhiteshark17283 · Jun 25, 2013 at 02:57 PM 0
Share

Thanks for the answer! Legacy makes it work.

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

18 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 avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

FBX Animation to Sprite 0 Answers

Use Animations from fbx files? 1 Answer

Animation not playing in Play mode 0 Answers

Why does Parented FBX keep transforming to 0,0,0 when i press play? 1 Answer

can't get fbx animation to play 3 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