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.
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?
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.
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!
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.
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.