Skip to content

Instantly share code, notes, and snippets.

View MPozek's full-sized avatar

Miki MPozek

View GitHub Profile
@MPozek
MPozek / AdvancedEnumPropertyDrawer
Created August 30, 2021 07:37
A better enum dropdown drawer for Unity
using System;
using UnityEditor;
using UnityEngine;
using UnityEditor.IMGUI.Controls;
[CustomPropertyDrawer(typeof(Enum), true)]
public class EnumPropertyDrawer : PropertyDrawer
{
private AdvancedStringOptionsDropdown _dropdown;
private SerializedProperty _property;
@MPozek
MPozek / QuickAccessWindow.cs
Last active July 16, 2020 20:44
Quick access window is a unity editor window with support for storing links to assets you often use for... well quick access
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;
public class QuickAccessWindow : EditorWindow
{
[System.Serializable]
public class Category