Skip to content

Instantly share code, notes, and snippets.

@impure
impure / TransparentBackgroundScreenshotRecorder.cs
Created August 11, 2020 21:48 — forked from bitbutter/TransparentBackgroundScreenshotRecorder.cs
Rendering screenshots from Unity3d with transparent backgrounds
using UnityEngine;
using System.Collections;
using System.IO;
/*
Usage:
1. Attach this script to your chosen camera's game object.
2. Set that camera's Clear Flags field to Solid Color.
3. Use the inspector to set frameRate and framesToCapture