Skip to content

Instantly share code, notes, and snippets.

@Sorumi
Sorumi / TransparentBackgroundScreenshotRecorder.cs
Last active April 12, 2024 07:38 — forked from bitbutter/TransparentBackgroundScreenshotRecorder.cs
Rendering screenshots from Unity3d with transparent backgrounds
using UnityEngine;
using System.Collections;
using System.IO;
/*
Usage:
1. Create a camera for rendering texture.
2. Create a RenderTexture object and set it as targetTexture on renderer camera.
1. Attach this script to the renderer camera's game object.