Blueprint , dictionary variable Bug

Hello, I have a problem with the variables ‘MAP’.

  • Map array , Name / struct (actor target, action, ect …)

In my blueprint class (_Button_Test ), I have a base index, but when I add a target (actor target array) in this index, when I’m ingame, the target array length is at 0, whereas it should be at 1.
By cons if I create another index in world, the one works.
Do you have an idea ?

Unreal engine 4.18.0
Master BP class: Actor / _SIO_Actor_Class / _Button_Test
_Button_Test: Cast_Map - 1 index
Project Smart Interactive Object : Smart Interactive Object ( 100% Blueprint ) - Marketplace - Unreal Engine Forums

in class :

in world :

219588-bp-map-in-world.png

in game get array length :

219589-bp-map-ingame.png

Could you demonstrate this part with a screenshot, the part where you update the struct/its array or its container:

[…]but when I add a target (actor target
array) in this index, when I’m ingame,
the target array length is at 0,

Struct arrays are somewhat fiddly; one can very easily create an accidental copy (rather than a reference), make changes to the copy and then discard it.

Here’s a video that shows the problem

Here’s a video that shows the problem

The development team does not have an idea?

You need to find the actors in the event BeginPlay. Construction script is used as a class constructor, before the game starts so it can’t reference actors yet.