Totally at a loss, unable to access struct from another blueprint
This seems insane, no matter how hard I debug, nothing works. I have a Blueprint called BP_Mercury, which is trying to access the member of a struct in BP_SUN so that it can get the mass... But nothing works. I've tried casting, I've tried using a variable set as the target blueprint, but NOTHING I do seems to work. I cannot seem to extract the value of the other blueprint's struct no matter what I try. This is how the blueprint is defined.
From CelestialBody UClass:
This is the struct:
If I break the struct from Self and Print to screen, it shows the mass. If I reference an external object, it always comes back as zero. Here's my attempts to debug with print statements (which always show a 0.0 value no matter what I set.)
I'm so so confused. It always shows the Parent Body's Mass as zero.
asked Jul 22 '15 at 05:53 AM in Blueprint Scripting
Firstly, try create constructor in your struct:
Secondly, define class like this:
If none of this helps, then it is a bug, or some mistake in your blueprint. I can continue this answer, if you show where and how you are modifying ParentSelect variable (if there will be something wrong of course).
answered Jul 25 '15 at 07:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here