Skip to content

Instantly share code, notes, and snippets.

View d-oleksy's full-sized avatar

Dariusz O d-oleksy

View GitHub Profile
@DashW
DashW / ScreenRecorder.cs
Last active October 30, 2024 20:05
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)