Skip to content

Instantly share code, notes, and snippets.

@ByronMayne
ByronMayne / CollapsableEventDrawer.cs
Last active September 27, 2022 19:04
Override the default UnityEventDrawer to draw a very small version when there are no callbacks.
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using UnityEngine.Events;
[CustomPropertyDrawer(typeof(UnityEvent))]
public class CollapsableEventDrawer : UnityEventDrawer
{