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