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 TheSHEEEP · Dec 21, 2011 at 02:23 PM · animationmodelruntimeload

Load model & animation during runtime

Hey there,

I read an incoming xml that tells the app which scene to use, model to use, wich animation, which skin/material, etc.

My problem now is that I cannot put all of these objects to be loaded into a scene and then just create a GameObject from it, as this would make memory explode ;)

I need to dynamically load a model and apply to it the correct animation during runtime. How would this be possible in Unity? In all examples, and from my testing, you already have "finished" models with an animation attached (in which you have to state which AnimationClip goes from frame x to y).

But I really need to load the model file & the animation file (those should not be combined, but each animation set in a different file) when the application is already running. And THEN create a GameObject from it.

And once the scene with those dynamically loaded objects is finished rendering, the scene must be unloaded, freeing previously loaded models, animation, etc., but I guess Unity does that automatially when you unload a scene.

Comment
Add comment · Show 1
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 25motion · Feb 14, 2013 at 09:25 AM 0
Share

Oh yes! Please let me know, if you found a solution for that. Really helpful question. :)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by CoixdeNono · Feb 14, 2013 at 09:36 AM

Loading things at runtime is easily done with assetBundle, although i've never tried to do it with animations and models apart. Here Maybe you can use an Animator Controler, it does a great job adding animations to a model without having these animations ON your model. Mecanim could realy help you here .

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 25motion · Feb 14, 2013 at 10:02 AM 0
Share

Thanks, but you misunderstood me. I dont want to import a bundle (.unity3d). I want to dynamically import obj files, attach animations to it (from an external file) and load the texture. So I dont have bundles on my server. I want to create a new map/scene by downloading (or simply importing) objects with animations while runtime. $$anonymous$$aybe you have an idea for me, how to do this. :) thanks!

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Choreography of Model-Animation stored in a file 1 Answer

How to change Textures after build the game? 2 Answers

Adding an animation to a rigid body 1 Answer

Why does half my model flip when I animate it? 2 Answers

play animation forward and then in reverse 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