- Home /
Question by
Prothean · Sep 23, 2016 at 11:39 AM ·
inspectorserializationserializedpropertyserializableserializedobject
Error when trying to Serialize a field that is in a class
So I'm am trying to make a blackboard for a behavior tree system, and I would like to be able to add items to the blackboard through the inspector. I have a serializable dictionary that works fine when it's on my Entity script by itself, but once I try putting it into the blackboard class and serializing that on the Entity script I get an error:
ArgumentException: Field m_dBoolValues defined on type BlackBoard is not a field on the target object which is of type AIEntity.
I can serialize and show a variable such as a normal bool just fine in the blackboard, but it just doesn't seem to work with the dictionary.
I imagine it is just something small I am missing, but I'm at a loss and the error itself doesn't make much sense to me.
Comment