Skip to content

Instantly share code, notes, and snippets.

import clipboard
import re
text = clipboard.paste()
start = text.find("Posted by")
end = text.rfind("Reply\nGive Award\nShare\nReport\nSave\nFollow\nAbout Community")
if start == -1 or end == -1:
print(text)
@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