KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
ALobbyLevelScriptActor.cpp
이 파일의 문서화 페이지로 가기
1// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
3
5
6#include "FComponentHelper.h"
7#include "LobbyWidget.h"
8#include "Blueprint/UserWidget.h"
9#include "Kismet/GameplayStatics.h"
10
11#define LOBBYWIDGET_PATH TEXT("/Game/CustomContents/UI/WBP_Lobby.WBP_Lobby_C")
12
14{
15 PrimaryActorTick.bCanEverTick = false;
16
17 // LobbyWidget 클래스 자동 로드
19}
20
22{
23 Super::BeginPlay();
24
25 if ( auto PC = UGameplayStatics::GetPlayerController(this, 0) )
26 {
28 {
29 LobbyWidget = CreateWidget<ULobbyWidget>(PC, LobbyWidgetClass);
30 if (LobbyWidget)
31 LobbyWidget->AddToViewport();
32 }
33 }
34}
#define LOBBYWIDGET_PATH
FComponentHelper 구조체를 선언합니다.
virtual void BeginPlay() override
TSubclassOf< class UUserWidget > LobbyWidgetClass
TObjectPtr< class ULobbyWidget > LobbyWidget
static T * LoadAsset(const TCHAR *Path)