Reply To: Support for Unity [SerializeField]

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

#23184
natas_liam
Participant

    Thanks for the reply.

    Just clarify, by ‘support’ I mean things worked. [ShowInInspector] attribute shows but does not necessarily serialize the marked field in the inspector (https://odininspector.com/documentation/sirenix.odininspector.showininspectorattribute).
    For the project I’m working on specifically, it allowed me to pick and choose a concrete type that implemented a certain interface, and then my custom attributes provided a drop-down list for certain fields in the concrete types that would pull the actual values from the scriptable object. Very handy. I was able to re-implement attributes in a way suitable for Node Canvas, but it only solves one small issue for me. If I could somehow create a custom node inspector that would support Odin – it would solve all my issues in one go basically (Odin will provide support for my custom attributes as well).
    Sorry for the wall of text, hope this makes sense.