Blackboard Entries

NodeCanvas Forums Support Blackboard Entries

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12112
    comicseans
    Participant

    Hello! I am trying to create entries in a global blackboard for my game’s singleton classes, however reflection in node canvas can’t seem to grab the static property of the instance of my singleton classes, possibly because of how I’m using generics in an abstract singleton base class.

    My code looks like…

    When I add type FooManager to the preferred types list, then go to a blackboard and try to add the property Instance of the class FooManager, I don’t get that option.

    Is this a limitation of reflection and data binding, or is there something I could do to make this work besides moving the Instance property into the FooManager class?

    Thanks!

    #12117
    Gavalakis
    Keymaster

    Hello,

    Hmm. I just tried this and seems to work correctly.
    Here I have bound the Instance property of FooManager to a variable of type FooManager.
    FooManagerInstance

    Hmm.. Are you under the latest version of NodeCanvas? There have been some changes in some of the recent versions that may affect this.
    Let me know.
    Thanks!

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

    Attachments:
    You must be logged in to view attached files.
    #12119
    comicseans
    Participant

    Hm, to make sure I wasn’t crazy, I made a new project with the latest version of Node Canvas off the asset store, added the exact two scripts in my post, made a variable of type FooManager on a blackboard, but when I went to data bind the static property Instance on FooManager, I got no such option.

    I’m using Unity 5.6.0f3, if that’s relevant.

    Is there anything else I could be doing wrong?

    Thanks for the response!

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

    Hey,
    You are right. There indeed was a bug in current version on asset store, which I’ve fixed in my local version which is about to be published.
    For your convenience I’ve send you the latest local version to your registered email address.
    Please let me know if everything works for you with the new version.

    Thanks!

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

    #12122
    comicseans
    Participant

    Thank you for the new package! That fixed the problem.

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