Skip to content

Instantly share code, notes, and snippets.

View mamadDev's full-sized avatar

Muhammad Azman mamadDev

  • Kuala Lumpur
View GitHub Profile
@bitbutter
bitbutter / TransparentBackgroundScreenshotRecorder.cs
Last active May 19, 2024 21:59
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