Unity导出模型预览图

EditorUtility.SetDirty(prefab);
Texture2D image = AssetPreview.GetAssetPreview(prefab);
System.IO.File.WriteAllBytes(Application.dataPath + "image.png", image.EncodeToPNG());

你可能感兴趣的:(Unity导出模型预览图)