dbrizov / NaughtyAttributes

Attribute Extensions for Unity
MIT License
4.47k stars 463 forks source link

Added Variable Label (VarLabel) #358

Open SenshiSentou opened 1 year ago

SenshiSentou commented 1 year ago

This commit adds a new meta attribute, VarLabel, that allows for conditional labels. This works similar to ShowIf and such, in that it takes the name of the field, method, or property providing the final label text.

Not sure I'm a fan of this hacky Label inheritance and the type check, but it is a Label, so eh. Hope someone finds this useful!