Skip to content

Instantly share code, notes, and snippets.

View pointcache's full-sized avatar
💭
status

pointcache pointcache

💭
status
View GitHub Profile
using UnityEditor;
// Quickly recompile the project.
// Use only on empty project as it will erase your define symbols.
public static class Tool
{
static int count = 0;
[MenuItem("Tools/Reload _r")]
public static void Reload()
@pointcache
pointcache / GoBackSelection.cs
Created February 17, 2022 04:12
Go back to previously selected object
[InitializeOnLoad]
public static class GoBackSelection
{
static GoBackSelection()
{
Selection.selectionChanged -= HandleSelectionChange;
Selection.selectionChanged += HandleSelectionChange;
HandleSelectionChange();
}