Skip to content

Instantly share code, notes, and snippets.

View zledas's full-sized avatar

Žilvinas Ledas zledas

View GitHub Profile
@zledas
zledas / 0-ReadMe.md
Last active November 6, 2026 15:30
Set custom max height for editor lists in Unity versions that use `UIElements`

Set custom max height for editor lists in Unity versions that use UIElements

The default Unity editor list max-height value is 520px and it is quite annoying if you have long lists and no other serialized properties on the object. Use this to change this max-height value for each list individually.

You need to put ListMaxHeightPropertyDrawer.cs in Editor folder.

No external dependencies.

@zledas
zledas / ReadMe.md
Last active October 15, 2026 13:39
Improved searchable `enum` value selector for Unity

Improved searchable enum value selector for Unity

This is an improved enum value selector for Unity editor. It offers value selection popup with searchable list of enum values.

Under the hood it uses Unitys AdvancedDropdown class, but as it has a lot of internal and private functionality, this "exposes" some of it to have nicer behaviour. No external dependencies.

To use it, add [SearchableEnum] attribute to the enum field.