BUG (critical): global BB's properties are never bound

NodeCanvas Forums Support BUG (critical): global BB's properties are never bound

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11642
    bcristian
    Participant

    Hello

    The specific initialization of global BB’s used to be in OnEnable (checking name uniqueness, registering in the list of global BB’s), while the common initialization (property bindings) was in the base Blackboard’s Awake.
    But now the global’s initialization has been moved to Awake too, so the property bindings are never set up.

    I’ve made the following changes, and it seems to be working now:
    made Blackboard’s _blackboard field protected instead of private
    add the binding initialization in Awake

    #11644
    Gavalakis
    Keymaster

    Hey,
    Thanks for letting me know! I missed that on my previous post with the GlobalBlackboard attached.
    Probably a better solution would be to make Blackboard.Awake virtual and override it in GlobalBlackboard along with a call to base.Awake() likeso:

    Blackboard.cs

    GlobalBlackboard.cs

    Thanks again!

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

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