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
4
#include "
ALobbyLevelScriptActor.h
"
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
13
ALobbyLevelScriptActor::ALobbyLevelScriptActor
()
14
{
15
PrimaryActorTick.bCanEverTick =
false
;
16
17
// LobbyWidget 클래스 자동 로드
18
LobbyWidgetClass
=
FComponentHelper::LoadClass<ULobbyWidget>
(
LOBBYWIDGET_PATH
);
19
}
20
21
void
ALobbyLevelScriptActor::BeginPlay
()
22
{
23
Super::BeginPlay();
24
25
if
(
auto
PC = UGameplayStatics::GetPlayerController(
this
, 0) )
26
{
27
if
(
LobbyWidgetClass
)
28
{
29
LobbyWidget
= CreateWidget<ULobbyWidget>(PC,
LobbyWidgetClass
);
30
if
(
LobbyWidget
)
31
LobbyWidget
->AddToViewport();
32
}
33
}
34
}
LOBBYWIDGET_PATH
#define LOBBYWIDGET_PATH
Definition
ALobbyLevelScriptActor.cpp:11
ALobbyLevelScriptActor.h
FComponentHelper.h
FComponentHelper 구조체를 선언합니다.
LobbyWidget.h
ALobbyLevelScriptActor::BeginPlay
virtual void BeginPlay() override
Definition
ALobbyLevelScriptActor.cpp:21
ALobbyLevelScriptActor::LobbyWidgetClass
TSubclassOf< class UUserWidget > LobbyWidgetClass
Definition
ALobbyLevelScriptActor.h:22
ALobbyLevelScriptActor::LobbyWidget
TObjectPtr< class ULobbyWidget > LobbyWidget
Definition
ALobbyLevelScriptActor.h:25
ALobbyLevelScriptActor::ALobbyLevelScriptActor
ALobbyLevelScriptActor()
Definition
ALobbyLevelScriptActor.cpp:13
FComponentHelper::LoadAsset
static T * LoadAsset(const TCHAR *Path)
Definition
FComponentHelper.h:16
Source
Onepiece
Game
Private
ALobbyLevelScriptActor.cpp
생성시간 : 금 1월 9 2026 00:25:57, 프로젝트명 : KLingo Project Documentation, 생성자 :
1.9.8