Runtime DataTable

Jared Therriault - 10月 23, 2019

This plugin will load a text csv or download a public Google Sheet and add parsed values to a matching FStructs or UObjects at Runtime. All data types supported by the built-in UE4 DataTable are supported by this plugin.

  • サポートされたプラットフォーム
  • サポートされたエンジンバージョン
    4.23 - 4.26
  • ダウンロードのタイプ
    エンジン プラグイン
    この製品には、コード プラグインが含まれており、ビルド済みのバイナリと Unreal Engine に統合される全ソースコードが完備されています。任意のエンジン バージョンにインストールし、プロジェクト毎に有効化することが可能です。

This plugin includes easyCSV in full.


Big Island update (object array support, variable name matching, local export) is live! See changelog here


Runtime Data Table or “RDT” is a plugin for Unreal Engine 4 that loads a Comma-Separated Values or CSV document at runtime with an FStruct’s or UObject's variables in text form and fills an array of that type with the appropriate values, converting text into the appropriate type.


RDT can be likened to the Data Table system built into UE4, but while that system works only at design time, this plugin is made to work while the game is running. Additionally, variables on objects can be manipulated directly without needing to make a struct.


The system works by downloading a public Google Sheet or loading a CSV from disk and attempts to update an array of FStructs or UObjects with values loaded and converted from the CSV. After the attempt is made, the plugin will call a function defined by the user to signal that the plugin has finished its duties.


The plugin also now supports CSV export converting an array's values into text that can later be loaded in the same way. You can even pick and choose which members to export.

テクニカルノート

Features:

  • Runtime parsing of Data Tables
  • Automatic update of FStructs or UObjects
  • Connectivity with Google Sheets - edit values on the fly, no need to reimport CSVs manually at design time
  • Export CSV from game data to a local file on disk

Code Modules:

  • Runtime Data Table: A runtime module that handles the download, parsing and struct/object updates


Number of Blueprints: 26

C++ Classes: 3

Network Replicated: No

Supported Development Platforms: Win64, Mac

Supported Target Build Platforms: Win32, Win64, Android, Mac, iOS (+tvOS as of 4.25)


Manual

Discussion (changelog also found here)

Project Files

Demo: Includes a TestStruct.csv (WindowsNoEditor\CSV_Test\Saved) that can be edited with the results showing in-game on-demand when 'Execute It' is clicked.


Video: What Is Runtime Data Table