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 olivermoore · Jan 31, 2013 at 05:56 PM · animationwwwassetbundlescliptypecasting

Please Help! :) Loading assetBundle Animations 4.0.0 -> 4.0.1 broke my scene

This Code was working before in 4.0.0.. loading asset bundles via www.

I updated from 4.0.0 -> 4.0.1 and my code now gives the following errors in 2 parts of this code..

BCE0019: 'name' is not a member of 'Object'. BCE0019: 'animation' is not a member of 'Object'.

Has something to do with how i'm typecasting into an object..I guess it should be a different type? I don't know what type it should be or how the code should look or how to find out what types are available with assetbundles./

the assetbundle i'm loading is only bones with animation on it..

Thanks in advance! ;

 var charAnim1 = new WWW (urlString);
         currentWWW = charAnim1;
         yield charAnim1;
 
         var Animation1 : Object[] = charAnim1.assetBundle.LoadAll(Animation);
         var clipName1 : String;
 
         clipName1 = Animation1[0].name.ToString();
 
         characterObj.animation.AddClip(Animation1[0].animation.clip, clipName1);    
         characterObj.animation.Play(clipName1);
         characterObj.animation.wrapMode = WrapMode.Loop;    
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 Graham-Dunnett · Jan 31, 2013 at 10:29 PM

Try changing Object[] to UnityEngine.Object[].

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 olivermoore · Jan 31, 2013 at 10:41 PM 0
Share

Fixed the 'name' error! :) Thank you. Thank You.

Hoever. the 'animation' is not a member of 'UnityEngine.Object'.

Still exists.

Ideas?

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

10 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

Related Questions

Mecanim - changing animation clip speed, through script? 4 Answers

Running animation until a certain time/frame 0 Answers

walk/idle animation clip 1 Answer

Animations in booleans loop? 1 Answer

Loading a large texture at at run time kills fps 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