UnityRuntimeInspector icon indicating copy to clipboard operation
UnityRuntimeInspector copied to clipboard

implement Array element preview

Open in0finite opened this issue 2 years ago • 1 comments

Array/List elements now have a text "preview", instead of just the element index.

After :

image

Before :

image

Sorry for bad code formatting.

in0finite avatar Jul 30 '23 16:07 in0finite

Adding a refresh keeps the element previews up to date. public override void Refresh() { base.Refresh(); foreach (var element in elements) { if (element.Value != null) { element.NameRaw = element.NameRaw.Split(':')[0] + ": " + GetArrayElementPreviewText(element.Value); } } }

msamora-supernatural avatar Aug 10 '23 15:08 msamora-supernatural