dbrizov / NaughtyAttributes

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

[request] Foldout for SerializeField #343

Open PascalPreibisch opened 1 year ago

PascalPreibisch commented 1 year ago

I saw now a lot of your methods are only for public variables. Is it possible to expand it to [SerializedField] private variables?

rhys-vdw commented 1 year ago

What's an example? I've only used NA attributes with SerializedField, I don't think there's a difference.

TylerTemp commented 7 months ago

SerializeField private works fine

[Foldout("Integers")][SerializeField]
private int firstInt;
[Foldout("Integers")]
public int secondInt;

image

image

Do you mean ShowNonSerializedField & ShowNativeProperty?

PascalPreibisch commented 7 months ago

uhm i dont know anymore what i wanted :D my time with unity is over at the moment. Maybe i need it again in a half year but id dont know. But thx for the answer could be helpful in the future.