Can you store a struct in a blackboard? And what about arrays in blackboard? Is this possible?

Hi,

I want to store an array of structs in my AI Blackboard but I cant seem to do this. There is however a class option - is the way to do it to store all my information in a new class? Or is it possible to get support for structs and arrays in the blackboard?

Basically, I want my enemy characters to be able to store information about other enemy characters around them, I was hoping to use a struct for the data, then an array of structs where each element is for the specific enemy.

I could make a class but I was just wondering if this is available to do in blueprints in any way?

Thanks in advance!

I just found the question posted on arrays in the blackboard - I hope this support comes soon! It would be extremely useful!
In the meantime I will have to find a way to do it with custom classes I think…

We are going to support arrays in 4.8. User-created structs not so much - it’s very tricky and we’re blocked by some BP details. We’ll add it as soon as possible.

And as a fallback you can always create a custom BP class storing your stuff and have that stored in Blackboard. That’s supported from the very beginnings of our Blackboard implementation.

Cheers,

–mieszko

Hey MiezkoZ,

I wanted to follow up on the support for arrays in blackboards. Did that get pushed off or is that under an option that I am not finding?

Thanks,
Michael Brune

2015

We’ll add it as soon as possible.

It’s now 2019 and still don’t see structs in there.

2022 :slight_smile:

1 Like

2023 :slightly_smiling_face:

:joy: Cool

This is why I’m excited for State trees. Blackboard was always so confusing.

2024 :slightly_smiling_face: