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 TTransmit · Mar 04, 2014 at 12:43 PM · animationblenderloopingunity4.3metafiles

Animation from a Blender model not looping

I am following Sebastian Lague's fantastic Unity 2D platformer tutorial (http://www.youtube.com/watch?v=_4HPI6ZopB8).

I have an issue when I import the model (https://copy.com/Q4IDiTqsKBn7Pu1Z/Player.blend?download=1) given with the tutorial into Unity 4.3.4f1. The animations do not cycle they just show the leg raising and getting stuck. When I look inside the model file in Unity and look at each animation I see that Loop Time and Loop Pose are not checked and are greyed out so cannot be changed.

Unity 4-3 cannot select loop pose

If I open the full Unity project directory provided with the tutorial (https://copy.com/xWfjLmRW8GCFRMFk/Part%203?download=1), the Loop Time and Loop Pose checkboxes are checked. In this version the animations do loop.

Looking inside the player.blend.meta files for the two versions, I can see that in my version there is the line:

 clipAnimations: []

Whereas in the working version this is replaced by:

 clipAnimations:
     - serializedVersion: 16
       name: Default Take
       takeName: Default Take
       firstFrame: 0
       lastFrame: 81
       wrapMode: 0
       orientationOffsetY: 0
       level: 0
       cycleOffset: 0
       loop: 0
       loopTime: 0
       loopBlend: 0
       loopBlendOrientation: 0
       loopBlendPositionY: 0
       loopBlendPositionXZ: 0
       keepOriginalOrientation: 0
       keepOriginalPositionY: 1
       keepOriginalPositionXZ: 0
       heightFromFeet: 0
       mirror: 0
       bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
       curves: []
       events: []
       transformMask: []
       maskType: 0
       maskSource: {instanceID: 0}
     - serializedVersion: 16
       name: Headband_Wave
       takeName: Headband_Wave
       firstFrame: 0
       lastFrame: 10
       wrapMode: 0
       orientationOffsetY: 0
       level: 0
       cycleOffset: 0
       loop: 0
       loopTime: 1
       loopBlend: 1
       loopBlendOrientation: 0
       loopBlendPositionY: 0
       loopBlendPositionXZ: 0
       keepOriginalOrientation: 0
       keepOriginalPositionY: 1
       keepOriginalPositionXZ: 0
       heightFromFeet: 0
       mirror: 0
       bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
       curves: []
       events: []
       transformMask: []
       maskType: 0
       maskSource: {instanceID: 0}
     - serializedVersion: 16
       name: Idle
       takeName: Idle
       firstFrame: 0
       lastFrame: 1
       wrapMode: 0
       orientationOffsetY: 0
       level: 0
       cycleOffset: 0
       loop: 0
       loopTime: 1
       loopBlend: 1
       loopBlendOrientation: 0
       loopBlendPositionY: 0
       loopBlendPositionXZ: 0
       keepOriginalOrientation: 0
       keepOriginalPositionY: 1
       keepOriginalPositionXZ: 0
       heightFromFeet: 0
       mirror: 0
       bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
       curves: []
       events: []
       transformMask: []
       maskType: 0
       maskSource: {instanceID: 0}
     - serializedVersion: 16
       name: Run
       takeName: Run
       firstFrame: 0
       lastFrame: 15
       wrapMode: 0
       orientationOffsetY: 0
       level: 0
       cycleOffset: 0
       loop: 0
       loopTime: 1
       loopBlend: 1
       loopBlendOrientation: 0
       loopBlendPositionY: 0
       loopBlendPositionXZ: 0
       keepOriginalOrientation: 0
       keepOriginalPositionY: 1
       keepOriginalPositionXZ: 0
       heightFromFeet: 0
       mirror: 0
       bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
       curves: []
       events: []
       transformMask: []
       maskType: 0
       maskSource: {instanceID: 0}
     - serializedVersion: 16
       name: Walk
       takeName: Walk
       firstFrame: 0
       lastFrame: 18
       wrapMode: 0
       orientationOffsetY: 0
       level: 0
       cycleOffset: 0
       loop: 0
       loopTime: 1
       loopBlend: 1
       loopBlendOrientation: 0
       loopBlendPositionY: 0
       loopBlendPositionXZ: 0
       keepOriginalOrientation: 0
       keepOriginalPositionY: 1
       keepOriginalPositionXZ: 0
       heightFromFeet: 0
       mirror: 0
       bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
       curves: []
       events: []
       transformMask: []
       maskType: 0
       maskSource: {instanceID: 0}

Copying and pasting this code into my version makes the animations run. However, I am worried about encountering this problem with my own Blender files and animations. How can I make the imported animations Loop Time and Loop Pose turn on? Alternatively, can I force Unity to expand the Clip Animations section so that I could edit these two settings (ie. change from 0 to 1) in the meta file?

unity-cannot-select-loop-pose.jpg (184.8 kB)
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
6
Best Answer

Answer by OllyNicholson · Mar 04, 2014 at 02:34 PM

Since the introduction of Mecanim (4.x) you edit your clip properties on the Animations tab of the model file, so it sounds like you may just need to set up your rig and animation clips first:

  • In the Project pane select the imported blender/fbx file (NOT the clip below it)

  • Go to the inspector: and in the rig tab - select Generic or Humanoid (if you want to retarget)

  • Go to the animations tab: Select each clip and Loop time / loop pose as
    applicable

For more information check out the documentation for the Mecanim animation system:

http://docs.unity3d.com/Documentation/Manual/MecanimAnimationSystem.html http://docs.unity3d.com/Documentation/Components/class-AnimationClip.html

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 TTransmit · Mar 04, 2014 at 03:39 PM 1
Share

I had tried this and it didn't work. Now I see why. When I make the change, it brings up a dialog box that says "Unapplied import settings". I had not put two and two together and kept closing the dialog box as it didn't make any sense to me. If I accept, it now works. Thanks.

avatar image oshaikh · Apr 24, 2015 at 09:39 AM 1
Share

Wow! I read tens of answers , only to find this correct one.. I created an account on this website just to upvote this answer haha. Thanks a lot!

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

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

Related Questions

creating a disolvable ik rig in blender for unity3D mecanim 0 Answers

Unity Partially Ignoring Blender Animation 1 Answer

Animation for rigged chest in blender does not work in Unity 0 Answers

Child problem in animation 1 Answer

importing destructible object from blender 0 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