Download

can´t referency correctly a widget in struct

i want referency my widget to a struct
i create a widget name W_statusbar and put parent of UBar
the problem i only can put reference my wight in setmember of struct i create in editor
if use of my code dont show
the picture i put it is the struct i create in editor
what i doing wrong
this my code



UENUM(BlueprintType)
enum class EnumStatus :uint8 {
None,
HP,
Mana,
DP,
Exp
};
USTRUCT(BlueprintType)
struct FS_Start_data : public FTableRowBase
{
GENERATED_BODY()

public:

UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 minVal;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 MaxValue;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 CurrentValue;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float DisplayValue;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float MinLerptime = 0.2;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float MaxLerptime = 1.5;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
bool CurrentAnimed;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
bool HasRegeneration;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
float TimetoRegenarionMaxValue=45;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
float RegInterval=0.4;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
FTimerHandle ReginerationTimer;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
FString RegFunctionName;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TSubclassOf<class UBar>ItemClass;


};

USTRUCT(BlueprintType)
struct FS_Start_lerp : public FTableRowBase
{
GENERATED_BODY()

public:

UPROPERTY(EditAnywhere, BlueprintReadWrite)
float OriginalValue;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float ValueToLerpTo;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool Positive;


};
UCLASS()
class THELEGENDSOFARTHUR_API UBar : public UUserWidget
{
GENERATED_BODY()



};