Skip to content

Instantly share code, notes, and snippets.

View Baste-RainGames's full-sized avatar

Baste Nesse Buanes Baste-RainGames

View GitHub Profile
@markeahogan
markeahogan / InspectorCapture.cs
Created August 3, 2023 07:02
Adds method to save the whole inspector to a screenshot
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
/// <summary>
/// Provides functionality for screenshotting full editor windows, and the inspector in particular