[4.25.4] Struct variable (Exposed on Spawn pin) on blueprints not updating correctly or not being recognized.

DevCoky
Fri, 11 Dec 2020 19:36:57 +0000
UI

# Problem

The problem that I was having was that even if my code is perfect and works if I close and re-open my UE4 project (same day/next day) it didn’t seem to load the functions at the OnDragDetected and OnDrop inside my Inventory_Slots. Upon printing my struct values I saw that they were not being passed and had the defaults that were set to none.

After debugging I found out that the source of the problem was at the creation of my custom Drag/Drop Operation were I was grabbing a struct variable’s information:

# Fix

What I did to fix this was:

Disable Instanced Editable and
Exposed on Spawn

Set the struct value directly after creating the operation.

After doing this every time I reset the project my code works as intended. It seems that the struct pin exposed on spawn is not being recognized or is not loaded correctly upon re-opening the project so I decided to report the possible editor/blueprint bug. This results in the values of the exposed variable staying at default or not showing.

Hope this helps anyone that is having the problem and please let me know if this is a known bug or if there is another fix for this.

5 posts - 5 participants