top of page
Image by Milad Fakurian

Unreal Structure Not Setting Correctly

Setting structure variables in Blueprint not working properly?


After getting stuck on a bug for a week, I've finally found the problem plaguing my code: breaking a struct and setting it to a variable directly should work as intended, except that in my case, when I randomly picked one struct from the array, each time a function with the white pin gets called, it picks a new one again.


So, the problem lies in how my set-variable process is designed. In my case, the solution was to hold/save the randomly picked structure in a temporary variable first, then grab the necessary components(See image below).


Problem:

The XYZ value from the "virtual select/target" differed from the XYZ obtained from the "calculated select/target."

Printed output(top-left corner)

Solution:


7 views0 comments

Recent Posts

See All
abstract-dark-background-carbon-fiber-with-metal-line-vector_edited.jpg

Official FBRC Drops

Unique Affordable Upgrades

bottom of page