Reply To: Support for Unity [SerializeField]

Forums 💬 NodeCanvas ⚙️ Support Support for Unity [SerializeField] Reply To: Support for Unity [SerializeField]

#23177
Gavalakis
Keymaster

    Hello there,

    Can you please clarify what part of [SerializeField] is not working? Using the [SerializeField] will make a private field be serialized (public fields are always serialized anyway). Using [SerializeField] will not expose private fields in the inspector if that is the issue you are having (?). To do so please use [ExposeField] (or simply make the field public of course 🙂 )

    Regarding the custom attribute and attribute drawers, custom attribute and drawers made on the Unity system were never supported because NodeCanvas uses a different serialization system than Unity and these things are technicaly bound together. NodeCanvas only supports custom attribute and drawers made with the custom attribute/drawers system ( https://nodecanvas.paradoxnotion.com/documentation/?section=creating-custom-object-drawers ). Do you mean you have issues with custom attribute/drawers you’ve made with this system, and if so can you please clarify what issues?

    Thanks.