Using 4.8.2
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:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "OrbitData")
FavBodyInfo cbBodyInfo;
This is the struct:
USTRUCT(BlueprintType)
struct FavBodyInfo
{
GENERATED_USTRUCT_BODY()
//Define Mass, Size, Atmosphere, Composition, Etc
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Body Properties")
float Mass;
}
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.