Skip to content

Instantly share code, notes, and snippets.

@bitbutter
bitbutter / TransparentBackgroundScreenshotRecorder.cs
Last active February 1, 2025 23:54
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
Verifying myself: My Bitcoin username is +tomasz_kaye. https://onename.io/tomasz_kaye
#!/usr/bin/env ruby
# This script lives in [working directory]/git_helpers/
# It gets called from a git pre-commit hook.
# It automatically adds timestamp information to max/msp object ids
# if they don't already have a timestamp.
# A start towards intelligent .maxpat merges in git-managed max/msp projects.
require 'find'
require 'fileutils'