Skip to content

Instantly share code, notes, and snippets.

@JChalka
JChalka / ScreenRecorder.cs
Last active November 6, 2019 11:50 — forked from DashW/ScreenRecorder.cs
ScreenRecorder - High Performance Unity Video Capture Script
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading;
class BitmapEncoder
{
public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData)