I was wondering if it’s valid to use a BP object reference instead of a Struct for storing a collection of variables.
LineTraceByChannel returns a Hit Struct with quite a lot of variables I can use.
But i only need 1 or 2 of them. Now I can’t just pull from the struct and go “Get Hit Location” to get that variable, I need to break or split the struct to see it and use it, but then i have this huge list of Variables I’m not using and they take up quite a bit of screen space.
So that’s why I’m wondering if there’s any downside to just use a BP as a return value for my functions instead, that way I can just pull from the BP only the variables I need.
I know this might seem overly OCD-ish, just because it takes screen space but there are some more advantages to using BPs instead of structs (like BPs inside BPs)
does using BPs encumber the memory more than structs? is it not optimized? or is it entirely up to me and the whole BP system decides on memory handling all by itself?
thanks for any answer