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 Sean Lee · Nov 10, 2011 at 04:07 PM · animationblenderfbx

Blender FBX animation

Hi, I have imported a FBX asset created by Blender but how to script the animation? Since it included 2 action ( waking and fall down/dead) is anyone have any idea on looping walk script and dead script?

Thank you!!

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
1

Answer by dannyskim · Nov 10, 2011 at 07:53 PM

In the FBX importer from the Inspector, you can set the animation to loop from there under "Animation Wrap Mode." If you FBX model has all the animations inside of one FBX, then you will have to separate the frames in the lower Box that gives you the ability to do so ( titles: name, start, end, wrapmode, loop ). You can separate them by pressing on the '+' sign in that box, and then designating the start and end frames. I would suggest making a naming convention that is unique to that particular model and animation, like ' thisAnimation_Walk', 'thisAnimation_FallDownDead.'

Another way would be to export the model from blender without animations attached to them, and export each animation with the FBX model separately so you can use the @ naming convention. So for this instance, you would have "thisModel.fbx", "thisModel@Walking.fbx", and "thisModel@FallDownDead.fbx."

To access these animations from script, you would simply put

 animation.Play( "Walk" );

If you wanted to set the wrap mode inside of the script, you would put:

 animation[ "Walk" ].wrapMode = WrapMode.Loop;
 animation.Play( "Walk" );

http://unity3d.com/support/documentation/ScriptReference/Animation.Play.html http://unity3d.com/support/documentation/Manual/Character-Animation.html

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

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Animated FBX: Model Rest Position 0 Answers

making and exporting animations involving multiple separate objects from to unity 0 Answers

Problems with an animation 0 Answers

Need help figuring out importing animations from blender 0 Answers

Warning(s) found while importing this animation file. 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