Skip to content

Instantly share code, notes, and snippets.

View WolvenBard's full-sized avatar
🐺
Arf

Shervin Mortazavi WolvenBard

🐺
Arf
View GitHub Profile
@WolvenBard
WolvenBard / PropertyDrawerFinder.cs
Last active March 8, 2024 05:21 — forked from wappenull/PropertyDrawerFinder.cs
Find PropertyDrawer with attribute [CustomPropertyDrawer( typeof( T ) )] in all assemblies
// Revision history
// Rev 1 16/MAY/2021 initial
// Rev 2 23/AUG/2021 add support for array property path
// Rev 3 23/AUG/2021 cache using type+path (s_PathHashVsType)
// Rev 4 23/AUG/2021 properly handling array and list by stealing code from Unity CS reference
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;