I was wondering if there is a way to create a bind variables such as a custom progress bar?
There’s always a way, but what do you mean by custom progress bar?
I Created a custom progress bar using SMeshWidget and i set the value using DynMatInst->SetScalarParameterValue(“NewHP”, NewHP);
And I want to bind the progress bar variable.
I found how… If it can help someone;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Progress, meta = (UIMin = "0", UIMax = "1"))
float Percent;
UPROPERTY()
FGetFloat PercentDelegate;
TAttribute< TOptional<float> > PercentBinding = OPTIONAL_BINDING_CONVERT(float, Percent, TOptional<float>, ConvertFloatToOptionalFloat);