Object Editor

NodeCanvas Forums Support Object Editor

  • This topic has 2 replies, 2 voices, and was last updated 1 year ago by slava.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16776
    slava
    Participant

    Hi, I’m trying to understand how Object Editor works.
    I’ve created a serialized class that I want to create in Blackboard, but when I click on the created object and Object Editor opens, it’s empty.

    Am I doing something wrong?
    I’ve tried to find something about Object Editor in the documentation and I only found something about custom drawers. So for every new class I need to create a custom drawer?

    Attachments:
    You must be logged in to view attached files.
    #16803
    Gavalakis
    Keymaster

    Hello,

    The inspectors in NodeCanvas currently do not show private fields (even if they have the SerializeField attribute). You could make the fields public, or use the [ExposeField] attribute to show them in the Object Editor (as well as all other NodeCanvas based editor).

    I opted to not make private fields inspectable since they are private, however I do understand that this might be confusing since Unity does expose private fields when [SerializeField] is used, therefore I might change this to be the same with Unity’s behaviour.

    Let me know.

    Thank you.

    Join us on Discord: https://discord.gg/97q2Rjh

    #16818
    slava
    Participant

    Aha, ok, thanks for the info. I couldn’t find it in the docs.
    I’ve checked it, if I add both SerializeField and ExposeField, it works nicely.
    Thanks for help!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.