Skip to content

Instantly share code, notes, and snippets.

View peterdijkstra's full-sized avatar
🤓

Peter Dijkstra peterdijkstra

🤓
  • Freelance Unity Developer
  • Amsterdam, The Netherlands
View GitHub Profile
@LotteMakesStuff
LotteMakesStuff / CustomInspectorCreator.cs
Last active September 15, 2024 01:22
Editor extension that adds a tool to automagically generate boilerplate custom inspector code~ YES! Just drop it into a folder called 'Editor' and it adds a 'custom inspector' option into the Project window!
using UnityEngine;
using UnityEditor;
using System.IO;
public static class CustomInspectorCreator
{
[MenuItem("Assets/Create/Custom Inspector", priority = 81)]
static void CreateInsptorEditorClass()
{
foreach (var script in Selection.objects)