Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Unity how to save 3D model(prefab) to a PNG image with transparent background?

In Unity how to save 3D model(prefab) to a PNG image with transparent background?

If not possible in unity, how about using maya?

like image 819
ArtS Avatar asked Nov 21 '25 20:11

ArtS


1 Answers

There's no easy way but by searching I could come with this. Hope it what's you need.

AssetPreview.GetAssetPreview to get a Texture2D of your model.

Then use Texture2D.EncoreToPNG to encore it to a PNG.

like image 179
Zaraky Avatar answered Nov 24 '25 15:11

Zaraky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!