EditorUtility.SetDirty(prefab);
Texture2D image = AssetPreview.GetAssetPreview(prefab);
System.IO.File.WriteAllBytes(Application.dataPath + "image.png", image.EncodeToPNG());
EditorUtility.SetDirty(prefab);
Texture2D image = AssetPreview.GetAssetPreview(prefab);
System.IO.File.WriteAllBytes(Application.dataPath + "image.png", image.EncodeToPNG());
本文标题:Unity导出模型预览图
本文链接:https://www.haomeiwen.com/subject/dbnrgrtx.html
网友评论