This actually has become problematic because I cant seem to set the variables in the C++ with the blueprint.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "QCMissionHUD.generated.h"
UCLASS(Abstract)
class UQCMissionHUD : public UUserWidget {
GENERATED_BODY()
public:
/** Update the HUD with the current the shield percent. */
void SetShield(float Percent);
/** The dynamic material used to represent the shield. */
UPROPERTY(BlueprintReadWrite, meta=(BindWidget))
class UMaterialInstanceDynamic* ShieldMaterial;
};
This doesnt work. I have tried a number of things to set the dynamic material instance, using a number of events and the blueprint compiler still reports:
A required widget binding "ShieldMaterial" of type Material Instance Dynamic was not found.
Clearly I am missing somethng but deep search of the internet has not revealed what that might be.
