UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UProjectInfo.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Containers/Array.h"
8#include "Containers/Map.h"
9
14{
15public:
18
20 CORE_API void Refresh();
21
23 CORE_API bool IsForeignProject(const FString& ProjectFileName) const;
24
26 CORE_API FString GetRelativeProjectPathForGame(const TCHAR* GameName, const FString& BaseDir) const;
27
29 CORE_API FString GetProjectPathForGame(const TCHAR* GameName) const;
30
33
36
37private:
39 FString RootDir;
40
42 TArray<FString> ProjectRootDirs;
43
45 TMap<FString, FString> ShortProjectNameDictionary;
46};
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition UProjectInfo.h:14
static CORE_API FUProjectDictionary & GetDefault()
Definition UProjectInfo.cpp:135
CORE_API bool IsForeignProject(const FString &ProjectFileName) const
Definition UProjectInfo.cpp:83
CORE_API void Refresh()
Definition UProjectInfo.cpp:18
CORE_API TArray< FString > GetProjectPaths() const
Definition UProjectInfo.cpp:128
CORE_API FString GetProjectPathForGame(const TCHAR *GameName) const
Definition UProjectInfo.cpp:119
CORE_API FString GetRelativeProjectPathForGame(const TCHAR *GameName, const FString &BaseDir) const
Definition UProjectInfo.cpp:107
Definition Array.h:670
Definition UnrealString.h.inl:34