Download

Problem with custom UserWidget

Hello,
I have create a HealthBar widget that have UserWidget parent class:
HealthBar.h




#pragma once

#include "Blueprint/UserWidget.h"
#include "HealthBar.generated.h"

/**
 * 
 */
UCLASS()
class NEVERENDINGNIGHTMARE_API UHealthBar : public UUserWidget
{
	GENERATED_BODY()

public:
		UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Life")
		float HealthPercentage;
	
	
	
};





HealthBar.cpp




#include "NeverEndingNightmare.h"
#include "HealthBar.h"





I have create blueprint with this parent class, but i have now a blueprint without “Blueprint Designer Mode”. Can you tell me why ?

Thanks in advance.

I have solved… I have create a widget blueprint e i have reparent class with my HealthBar. Works fine now. Thanks all