Hi,
Anyone please provide me answer or hits regarding how I can convert bytes to an animation cilp, please?
I loaded a saved .anim file by a simple script below but I cannot find any info how I can reconstruct them into an animation clip.
// Load the file
WWW request = new WWW("file:///" + path);
// Waite until completed
while (!request.isDone)
{
yield return new WaitForEndOfFrame();
}
// Get Animation Clip from loaded file
var bytes = request.bytes;
I tried asset bundle and it worked perfect but I am searching a way to omit the process of bundling and unpacking for some reason.
I know i made some OpenGL projects in C++ like 10 years ago and use fbx animation file to animate my models. You need to read the files and animate yourself the model. I don’t know if this is the best solution.
Thank you for another information. Exporting FBX is something I have to look into anyway and the link is very useful.
After doing some research in the last few days, now I start feeling using asset bundle is the easiest way for exporting & importing .anim files.
Well, I will check if I can take animation clip from FBX files in run time. Thanks again.