• 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 santelia · Feb 11, 2012 at 12:27 PM · animationblenderexportsplitwalk

how to play split animations from a blender model?

I'm losing my head while trying to use inside Unity3D some multiple animations of a character made in blender. In blender I've created a long animation that from frame 1 to 400 has to be used as idle, and from frame 401 to 440 has to be used as walk animation. Exported the model to fbx using "unity" preset, taking armature, mesh, animations, all actions. In Unity the fbx is seen well. The prefab shows one animation. Then I used the Split Animation inspector tool in Unity and divided the animation as follows: idle start 1 end 400 WrapMode loop; walk start 401 end 440 WrapMode loop. Now the prefab shows those two animations, idle and walk. The Animation inspector tool also shows two elements, respectively element 0 is idle and element 1 is walk. To control my character I use a third person controller script that I successfully tested with the "muktargame" animated monster model from the asset store. It runs very well. That script uses some variables, and for my character model I set the Idle Animation at "idle" (the name of my idle animation), and the Walk Animation at "walk" (the name of my walk animation). Despite all that, when I hit play, my model correctly loops the idle animation, but when I use the arrows (working on a Mac) to make the character walk, it doesn't use the walk animation that I set: the character simply slides along the arrow direction, without playing any animation at all. I repeat: the same script tested on "muktargame" from asset store ran very well. What have I done wrong? Maybe something in the animation labelling or something around there...? It would be very, very, really very appreciated if anyone could give me the exact detailed workflow and instructions on how to solve that. Please, no answers like "try-to-set-this-don't-remember-where-and-when"... ;-) .

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Owen-Reynolds · Feb 11, 2012 at 03:49 PM

Test whether Walk is working at all. In your case, simplest thing is to jump in the script and temporarily replace "idle" with "walk". Or, drag in the prefab copy, disable/remove the script and change top animation slot to Walk.

Also, I feel silly saying it, are there any run-time errors? Muktar may be be playing "headbob," which crashes on your headbobless version, and it never gets to Walk.

Can check whether the gameObject has the correct Walk. It's possible you have Muktar's(?) walk. Or, sometimes animation names get doubled-up and you'll have 2 Walks, one of them non-functional. Since the bones aren't the same, it just won't do anything and won't give any errors. Simplest thing is to rename your walk "WalkA" or something.

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 santelia · Apr 09, 2012 at 08:09 AM 0
Share

thank you. solved.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Blender Path animation to Unity? 2 Answers

Why can't I import animations? 1 Answer

Unity Import automatically adds unnecessary Keyframes 2 Answers

fbx animation to> blender 1 Answer

Blender animation inport problem 3 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges