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 VipHaLongPro · Mar 30, 2015 at 10:47 AM · animationimportmodel

How to use/access animation of imported model?

I downloaded a free package (with some turret models) from the asset store but don't know how to use that in code (making it play the animation). The models have separate parts. I think I can animate the parts I want by creating the animations myself but looks like those models already have some pre-built animation. I can play it via the Inspector of the import settings (select the Animation tab), something like in this image:

alt text

However when I select the gameObject (from the model being dragged into the scene) and open both the Animation and Animator window, I see nothing.

I only know how to play the animation in code if the object has some Animation or Animator components. This thing is very strange to me maybe because I'm still fairly new to Unity. Could you point me in the right direction on how to use that model with its designed animation in my code (means controlling it in code)?

Thanks for your time helping me!

modelimport.png (93.2 kB)
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 meat5000 ♦ · Mar 30, 2015 at 11:49 AM 0
Share

Create an Animation Controller in your Project Hierarchy.

avatar image VipHaLongPro · Apr 01, 2015 at 10:31 PM 0
Share

any mod please reviews and approves my own answer to my own question.

avatar image GraviterX · Apr 01, 2015 at 11:19 PM 0
Share

What exactly do you want the model to do and how will it be accomplished? Triggers? $$anonymous$$eypress?

avatar image VipHaLongPro · Apr 02, 2015 at 08:54 PM 0
Share

@GraviterX I solved my own problem. I don't think it's too difficult to understand the problem here. What I want is access to the imported animation. After importing, you can play the animation via Inspector but don't see where the animation clip is. I found that it's very hidden under the model hierarchy (grouped into an icon having an expanding arrow).

1 Reply

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

Answer by VipHaLongPro · Apr 02, 2015 at 06:15 AM

I've found the imported Animation Clip (which was very hidden) myself. It is under the model hierarchy. Its properties are disabled and can be changed only via the Model Import Settings (in the Inspector window when you select the model). The reason it looked so hidden is because the model in the project view looks like a Sprites bundle having a right expanding arrow. Clicking on that arrow will expand all the closest parts (in the hierarchy) including the imported Animation Clip.

alt text

With the imported animation clip found, of course I know how to animate the gameObject (using some Animator) and control it in code.

Hope this may help someone else!


hiddenclip.png (41.9 kB)
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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Can't find Mecanim? 2 Answers

World of Warcraft Model Import 1 Answer

Problems Importing Rigged Model from Blender to Unity 2 Answers

Can rig importing be disabled on Models? 1 Answer

How to get and use animation clips of a model via script? 1 Answer


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