Skip to content

Instantly share code, notes, and snippets.

View HaydenReeve's full-sized avatar
⚗️
Science!

Hayden Reeve HaydenReeve

⚗️
Science!
  • Verbrec
  • Perth, Australia
  • 00:29 (UTC +08:00)
View GitHub Profile
@seleb
seleb / roll20 map save.js
Last active October 29, 2024 15:21
script for exporting roll20 maps to an image
/**
script for exporting roll20 maps to an image
how to use:
1. open your roll20 game to the page you want to save
2. open your browser's developer tools
3. copy-paste this entire file in the console
4. hit enter
5. wait for map to save and appear in top-left
6. right-click -> save as... to export
@yasirkula
yasirkula / SceneViewUIObjectPickerContextWindow.cs
Last active November 19, 2024 05:38
Select the UI object under the cursor via right click in Unity's Scene window
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;
#if UNITY_2021_2_OR_NEWER
using PrefabStage = UnityEditor.SceneManagement.PrefabStage;
using PrefabStageUtility = UnityEditor.SceneManagement.PrefabStageUtility;