- Home /
Question by
crazy_boy_02 · Aug 02, 2013 at 08:26 AM ·
animationmecanimbundles
Import animations dynamically from asset bundle : Mecanim
Hi All,
Is it possible to import animations dynamically from an asset bundle using Mecanim Animations,
i know this is easily possible with Generic animations by the following code
IEnumerator LoadAnimations()
{
WWW www = new WWW ("https://dl.dropbox.com/s/4hnnw7wrg6zqwnk/anbundle.unity3d");
yield return www;
Object[] Animations = www.assetBundle.LoadAll();
foreach(AnimationClip clip in Animations)
{
string loadThis = clip.ToString();
theCharacter.animation.AddClip((AnimationClip)clip, loadThis);
}
}
but how can we do the same for Mecanim Animations.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613111415im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Random float parameter for idle animations 1 Answer
Multiple Animation Events Parameter Mecanim 1 Answer
Adding an eyeblink animation layer 0 Answers
Walk/Run right animations seem hard to come by 1 Answer
MecAnim turn animations not complete. 0 Answers