Blueprints Access To GConfig

TrifoliumDigital - 3월 1, 2021

Access GConfig Functionality via Blueprints

  • 지원 플랫폼
  • 지원 엔진 버전
    4.25 - 4.26
  • 다운로드 유형
    엔진 플러그인
    이 제품은 코드 플러그인과 함께 미리 빌드한 바이너리와 언리얼 엔진에 통합되는 모든 소스 코드를 포함하고 있으며 원하시는 엔진 버전에 설치하여 프로젝트에 따라 활성화할 수 있습니다.

What is this?

This plugin provides access from blueprints to the data that lives in the Unreal Engine 4 .ini files.


Why would you need this?

Whilst I was an engineer at Epic Games, I worked a lot on the Config Cache (The ini system). The Config Cache is a core part of the engine and is used by almost every module in one way or another. E.g. To enable voice in your project, you would have had to make a config change to enable this. The Engine’s Online Voice interface would pick it up like so:

GConfig->GetBool(TEXT(“OnlineSubsystem”), TEXT(“bHasVoiceEnabled”), bHasVoiceEnabled, GEngineIni)

In code this is easily accessibile through GConfig. A quick find in the 4.26 source shows that there are ~2700 references to this. However, as far as I can see, there has been no exposure of the common GConfig functionality to Blueprints. That is where this plugin comes in.


Using the plugin…

Given that the GConfig system allows the developer to access important config information, I have exposed the most basic functionality via this plugin. These have been categorised into three categories: Getters, Setters, and Misc.

기술적 세부사항

Blueprints Access To GConfig

Provides blueprint functionality for all common GConfig operations. Including:


Getters

  • GetString
  • GetText
  • GetBool
  • GetInt
  • GetFloat
  • GetArray
  • GetColor
  • GetVector2D
  • GetVector
  • GetVector4
  • GetRotator

Setters

  • SetString
  • SetText
  • SetBool
  • SetInt
  • SetFloat
  • SetArray
  • SetColor
  • SetVector2D
  • SetVector
  • SetVector4
  • SetRotator

Misc

  • Flush


Target configuration file (.ini) is available through each node's dropdown or via an EConfigIniFileNames node from your blueprints.


Further information on this plugin, including documentation can be found at:

https://trifoliumdigitalblog.wordpress.com/2021/02/22/blueprint-access-to-gconfig-plugin/