Skip to content

Instantly share code, notes, and snippets.

@DashW
DashW / ScreenRecorder.cs
Last active April 3, 2025 13:23
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)