I still dont’ got it…
May be you can explane it a little more easy.
I have used C++ 20 yeas ago. Allthing is forgotten
I have added to LanguageActor.h
UCLASS()
class DREAMPAX_API ALanguageActor : public AActor
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWritable)
ALanguageActor* LanugageVar;
}
and had had a compilation fail.
Next lines:
BlueprintMenuWidget* widget = CreateWidget<BlueprintMenuWidget>(GetWorld(), BluePrintMenuWidgetClass);
and
widget->LanguageVar = this;
initiate a syntacsys error.
Could you explane where each pice of code should be.
May be after that I’ll get how it works.
I created just “LanguageActor.h”, “LanguageActor.cpp” and one Blueprint “MainMenu”.
Thanks in advance.