Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
ULevelStreamingSubsystem::FLevelStreamingUtility 구조체 참조
ULevelStreamingSubsystem::FLevelStreamingUtility에 대한 협력 다이어그램:
Collaboration graph

정적 Public 멤버 함수

static ULevelStreaming * FindVisible (const UWorld *World)
 
static ULevelStreaming * FindByName (const UWorld *World, FName LevelName)
 
static void PrepareLevelForLoad (ULevelStreaming *StreamingLevel, bool bShouldBeLoaded)
 
static ULevelStreaming * ResolveTargetLevel (UObject *WorldContextObject, FName LevelName, bool &bOutAlreadyLoaded, bool &bOutSuccess)
 

멤버 함수 문서화

◆ FindByName()

ULevelStreaming * ULevelStreamingSubsystem::FLevelStreamingUtility::FindByName ( const UWorld *  World,
FName  LevelName 
)
static
51{
52 if (World == nullptr)
53 {
54 return nullptr;
55 }
56
57 const FString LevelStr = FPackageName::GetShortName(LevelName.ToString());
58
59 auto Found = Algo::FindByPredicate(World->GetStreamingLevels(), [&LevelStr](const ULevelStreaming* Level)
60 {
61 if (Level == nullptr)
62 {
63 return false;
64 }
65
66 const FString WorldName = Level->GetWorldAsset().GetAssetName();
67 return WorldName.IsEmpty() == false && WorldName == LevelStr;
68 });
69
70 if (Found && *Found)
71 {
72 return *Found;
73 }
74 else
75 {
76 return nullptr;
77 }
78}

다음에 의해서 참조됨 : ULevelStreamingSubsystem::EnterDuringLoadState(), ULevelStreamingSubsystem::FInitialStageBootstrapper::TryInitializeCurrentStage().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ FindVisible()

ULevelStreaming * ULevelStreamingSubsystem::FLevelStreamingUtility::FindVisible ( const UWorld *  World)
static
35{
36 if (World == nullptr)
37 {
38 return nullptr;
39 }
40
41 auto Found = Algo::FindByPredicate(World->GetStreamingLevels(), [](const ULevelStreaming* Level)
42 {
43 return Level && Level->IsLevelVisible();
44 });
45
46 return (Found && *Found) ? *Found : nullptr;
47}

다음에 의해서 참조됨 : ULevelStreamingSubsystem::InvalidateLevelLoadRequest().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ PrepareLevelForLoad()

void ULevelStreamingSubsystem::FLevelStreamingUtility::PrepareLevelForLoad ( ULevelStreaming *  StreamingLevel,
bool  bShouldBeLoaded 
)
static
82{
83 if (StreamingLevel == nullptr)
84 {
85 return;
86 }
87
88 StreamingLevel->SetShouldBeLoaded(bShouldBeLoaded);
89 StreamingLevel->SetShouldBeVisible(false);
90}

다음에 의해서 참조됨 : ULevelStreamingSubsystem::HandleLevelLoading().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ ResolveTargetLevel()

ULevelStreaming * ULevelStreamingSubsystem::FLevelStreamingUtility::ResolveTargetLevel ( UObject *  WorldContextObject,
FName  LevelName,
bool &  bOutAlreadyLoaded,
bool &  bOutSuccess 
)
static
94{
95 bOutAlreadyLoaded = false;
96 bOutSuccess = false;
97
98 if (WorldContextObject == nullptr)
99 {
100 return nullptr;
101 }
102
103 UWorld* World = WorldContextObject->GetWorld();
104
105 if (World == nullptr)
106 {
107 return nullptr;
108 }
109
110 if (ULevelStreaming* ExistingLevel = FindByName(World, LevelName))
111 {
112 bOutAlreadyLoaded = ExistingLevel->IsLevelLoaded();
113 bOutSuccess = true;
114 return ExistingLevel;
115 }
116
117 const FString TargetLevelName = LevelName.ToString();
118 ULevelStreamingDynamic* StreamingLevel = ULevelStreamingDynamic::LoadLevelInstance(WorldContextObject, TargetLevelName, FVector::ZeroVector, FRotator::ZeroRotator, bOutSuccess);
119 return StreamingLevel;
120}
static ULevelStreaming * FindByName(const UWorld *World, FName LevelName)
Definition LevelStreamingSubsystem.cpp:50

다음에 의해서 참조됨 : ULevelStreamingSubsystem::HandleLevelLoading().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

이 구조체에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: