Blueprints Access To GConfig

TrifoliumDigital - 3月 1, 2021

Access GConfig Functionality via Blueprints

特价:$4.99
$3.99登录购买
  • 支持的平台
  • 支持的引擎版本
    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/