top of page
Image by Milad Fakurian

Unreal Structure Not Setting Correctly

Writer's picture: Mark HartonoMark Hartono

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:


8 views0 comments

Recent Posts

See All

תגובות


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

Official FBRC Drops

Unique Affordable Upgrades

BECOME AN ARKEN & GAIN EXCLUSIVE ALPHA TEST PRIVILEGES

Thanks for submitting!

  • Instagram
  • Facebook
  • Twitter
  • LinkedIn
  • Youtube

©2024 by Arkenzo Interactive


Disclaimer: The content on this page is provided for general informational purposes only and is not intended to constitute professional advice or guidance. Some narratives on this site are fictional and created for entertainment purposes. The information and benefits presented on this site are subject to change without prior notice and are not guaranteed to be entirely accurate or up-to-date. For precise and up-to-date information about our company and products, please contact us directly.

bottom of page