Deadcows / MyBox

MyBox is a set of attributes, tools and extensions for Unity
http://deadcow.ru
MIT License
1.91k stars 241 forks source link

Suggestion: Help boxes #241

Open JackSinkoRB opened 10 months ago

JackSinkoRB commented 10 months ago

Add a help box attribute that can be used like [HelpBox("some text")]

It would be good to have conditional parameters also, so it only shows the warning if the bool is disabled, value is null, 0 etc.

I previously made this which worked well, but it was very messy and I'm sure you could do a better job (plus MyBox has had a few updates since then). https://pastebin.com/AGeCKy17

Edit: made a more simplified one, but it doesn't use the normal MyBox conditional logic https://pastebin.com/HVhwe4cK

sddefault