unity3d - Import existing animation file to unity web player model -


i'm trying import existing .anim file existing unity model. know how in unity, , build html file, i'm wondering there method using unityscript or javascript? mean using javascript load .anim file model in unity web player, if there solution, thanks!

resource.load allows that.

var mdl : gameobject = resources.load("animations/"+ animationfolder+"/" + aname);      if (!mdl) {          debug.logerror("missing animation asset: animations/" + animationfolder+"/"+aname + " not found.");      }  else {          var aclip = mdl.animation.clip;         charanimation.addclip(aclip, aname);         debug.log(charanimation[aname].name + " loaded resource file " + animationfolder + "/" + aname + ". length check: " + charanimation[aname].length);          } 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -