UE4DemoGameModeBase.h
644 字节
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/GameModeBase.h"
#include "Blueprint/UserWidget.h"
#include "UE4DemoGameModeBase.generated.h"
/**
*
*/
UCLASS()
class UE4DEMO_API AUE4DemoGameModeBase : public AGameModeBase
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable,Category = "UMG Game")
void ChangeMenuWidget(TSubclassOf<UUserWidget>NewWidgetClass);
protected:
virtual void BeginPlay() override;
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "UMG Game")
TSubclassOf<UUserWidget> StartingWidgetClass;
UPROPERTY()
UUserWidget* CurrenWidget;
};