NaughtyAttributes icon indicating copy to clipboard operation
NaughtyAttributes copied to clipboard

[Request] Support showing null reference

Open Kotsuha opened this issue 3 years ago • 1 comments

Been using NaughtyAttribute for a long time. Thanks for this wonderful plugins.

Currently NaughtyAttribute doesn't support showing null reference. It would say:

Foo is null. ShowNonSerializedFieldAttribute doesn't support reference types with null value.

Is there possibilities for this? I haven't look into the code. I'd imagine to make it work just like Unity did - display a blank object field.

Kotsuha avatar Nov 03 '22 12:11 Kotsuha

Code is here, called at here and here

It'll be incorrect to display a blank object field because it might be not a object, like a string.

If it's a dynamic field then, maybe display a red background label says "null"?

TylerTemp avatar Jan 16 '24 09:01 TylerTemp