How to save assets as fbx in Unity3d?
12,347
There is this plugin that may help you: https://www.assetstore.unity3d.com/en/#!/content/37276
If you just need to save your models for further use, however, the simplest way to do it is to save them with Unity own format using AssetDatabase.CreateAsset
from UnityEditor
package, like this:
using UnityEngine;
using UnityEditor;
[RequireComponent(typeof(MeshFilter))]
public class Example : MonoBehaviour
{
private void Start()
{
AssetDatabase.CreateAsset(GetComponent<MeshFilter>().mesh, "Assets/mesh.asset");
}
}
Or you can use this free plugin to export OBJ: https://www.assetstore.unity3d.com/en/#!/content/15862
Author by
Knaus Irina
Updated on June 14, 2022Comments
-
Knaus Irina almost 2 years
I generate model buildings dynamically in Unity3d. After they are generated I have lots of Meshes in the Scene. How do I save it as a .fbx file?
-
Knaus Irina over 8 yearsI don
t want use AssetDatabase, because I have many count of meshes and meterials - it takes long time save each assets separate (somethimes 1 day). I don
t may use format .obj, because its could not save transform of meshes. I have many gameObjects, that contains the same mesh, but with some transform (move, scale or rotate). If I use obj then its generate for each new transfrom gameobject new mesh - Its very bad, because I generate assetbundles for its (very big size of assetbundles became).