KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UConfigLibrary.h 파일 참조

GConfig 래퍼 설정 관리 시스템 더 자세히 ...

#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "UConfigLibrary.generated.h"
+ UConfigLibrary.h에 대한 include 의존 그래프
+ 이 그래프는 이 파일을 직/간접적으로 include 하는 파일들을 보여줍니다.:

이 파일의 소스 코드 페이지로 가기

클래스

class  UConfigLibrary
 GConfig 래퍼 라이브러리 더 자세히 ...
 

상세한 설명

GConfig 래퍼 설정 관리 시스템

GConfig를 래핑하여 간단한 Get/Set API 제공

사용 예시:

// Global Settings
UConfigLibrary::SetInt(TEXT("MasterVolume"), 80);
int32 Volume = UConfigLibrary::GetInt(TEXT("MasterVolume"), 100);
// User-Specific Settings
const int32 UserId = ULingoGameHelper::GetUserId(this);
UConfigLibrary::SetUserBool(UserId, TEXT("TutorialCompleted"), true);
bool bCompleted = UConfigLibrary::GetUserBool(UserId, TEXT("TutorialCompleted"), false);
static int32 GetInt(const FString &Key, int32 DefaultValue=0)
전역 정수 설정 읽기
static void SetInt(const FString &Key, int32 Value, bool bAutoSave=true)
전역 정수 설정 저장
static bool GetUserBool(int32 UserId, const FString &Key, bool bDefaultValue=false)
유저별 불린 설정 읽기
static void SetUserBool(int32 UserId, const FString &Key, bool bValue, bool bAutoSave=true)
유저별 불린 설정 저장
static int32 GetUserId(const UObject *WorldContextObject)

UConfigLibrary.h 파일에서 정의되었습니다.