Reply To: [NodeCanvas] Unable to serialize private field

Forums 💬 NodeCanvas ⚙️ Support [NodeCanvas] Unable to serialize private field Reply To: [NodeCanvas] Unable to serialize private field

#15638
Gavalakis
Keymaster

    Hello there,

    The inspectors in NodeCanvas do not expose private fields by default even if they are set as [Serializable]. While this is different than Unity inspectors, it always felt incorrect to expose private fields.

    With that said, you can simply add the [ParadoxNotion.Design.ExposeField] attribute on your private field to expose it in the NodeCanvas inspector (no custom object drawer required).

    Let me know if that works for you.

    Thanks!