Export transparent PNG Image

I need to export the terrain I’ve been drawing on the current scene into a transparent PNG Image. Is it possible ?

I can’t confirm that transparency would work with this, but I can’t think of a reason why it wouldn’t. You probably want to read around this:

https://docs.unity3d.com/Documentation/ScriptReference/Texture2D.EncodeToPNG.html

thanks! But i don’t know how to use that code

I solved it in a different manner.

  1. I made the unity background pink
  2. I made a snapshot
  3. I imported the snapshot in photoshop and i removed the pink background with the magic wand