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?
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.
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!
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.