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
4
Question by yujingbo · Nov 22, 2014 at 04:47 PM · assetbundleanimationclip

AnimationClip in AssetBundle can't load correctly

Hi everybody, I want build AnimationClip to AssetBundle, then I can dynamic use the AnimationClip when I load AssetBundle. but when I loading AnimationClip after build the AssetBundle, I can get the AnimationClip object, but the internal data in the object is wrong, and my character can't play it.

if I build other resource like AudioClip in AssetBundle, I can use it perfect. is humanoid AnimationClip can't build in AssetBundle or someting i used in wrong way? :(

Does Unity can build Mecanim AnimationClip into AssetBundle or not?

detail: 1. I use Mecanim Animation System. AnimationType is humanoid. 2. I get AnimationClip(.anim file) from FBX, use Ctrl+D seperate the AnimationClip. 3. if I place the AnimationClip in Resouces folder, I can use Resources.Load load correctly, but if build in AssetBundle it won't works. 4. My Unity3d version is 4.5.5f1alt text

build code: BuildPipeline.BuildAssetBundle( null, kvp.Value.ToArray(), path, BuildAssetBundleOptions.CompleteAssets | BuildAssetBundleOptions.CollectDependencies, BuildTarget.StandaloneWindows );

load code: byte[] binary = use System.IO read Asetbundle; AssetBundle ab = AssetBundle.CreateFromMemoryImmediate( binary ); if( ab != null ) { if( ab.Contains( name ) ) { Object asset = ab.Load (name, typeof(AnimationClip)); return asset as AnimationClip; } }

need you help, thank you everybody!

Comment
Add comment · Show 3
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 kimsama · Apr 27, 2015 at 07:27 AM 0
Share

Got same issue on Unity5. And no idea how to solve it.

avatar image gyx920820 kimsama · Feb 01, 2016 at 06:07 AM 0
Share

Have you solved it?

avatar image gyx920820 · Feb 01, 2016 at 02:12 AM 0
Share

Have you solved it?

0 Replies

· Add your reply
  • Sort: 

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Can't Instantiate AnimationClip from AssetBundle correctly 1 Answer

Set animation clip humanoid 0 Answers

AnimationClips from fbx in Assetbundle not correctly loaded 0 Answers

How to import the object from server to unity 2 Answers

Whats the difference between an Object and A GameObject? 2 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