[Blueprint / Widget] - Support "Margin" BP Structure
complete
SyedMuhammad
complete
SyedMuhammad
I will add to those, unfortunately I can't make it automatic for all basic structs, and they don't have reflection, but if you have more structs needing that support let me know
SyedMuhammad
Doesn't it work by default? Do you get any error?
Because you can call any function from the Widget or UserWidget
NegativeName
SyedMuhammad: The function is callable, maybe I wasn't clear on that one
I meant to support this structure so I don't have to split the parameter to 4 floats (and it's a structure really used often in widget styling)
SyedMuhammad
NegativeName: I see, so currently you have a custom function to intermediate that?
NegativeName
SyedMuhammad: Since I made my own widget framework I just splitted it to 4 floats, so yeah
NegativeName
Btw if you could support Vector4 struct it would be great aswell since its used in outline settings
(Convert Quat to Vector4 bp structure)
SyedMuhammad
NegativeName: I can add them in a "hacky" way, so you pass it like this:
local padding = { Top = 1, Left = 1, Right = 0.5, Bottom = 0.2 }
my_button:CallBlueprintEvent("SetPadding", )
and the same for Vector4:
local v4 = { X = 1, Y = 1, Z = 0.5, W = 0.2 }
NegativeName
SyedMuhammad: Yeah, why not, that's what I'm doing in the lua side aswell