Crossplay Integration Kit
Tools

EditDataStructure

Modify structs, enums, and data tables

The EditDataStructure tool manages User Defined Structs, User Defined Enums, and DataTables.

User Defined Structs

Add Fields

Add a float field called Health to S_CharacterStats
Add an int field called Level with default value 1
Add a Vector field called SpawnLocation
Add an array of Names called Tags

Modify Fields

Change the default value of Health to 100
Rename Level field to CharacterLevel
Change Tags type from array of Names to array of Strings

Remove Fields

Remove the SpawnLocation field from S_CharacterStats

Supported Field Types

  • Primitives: bool, int, float, string, name, text
  • Vectors: Vector, Rotator, Transform
  • References: Object, Class, SoftObject, SoftClass
  • Containers: Array, Set, Map
  • Other structs: Reference other User Defined Structs

User Defined Enums

Add Values

Add value Idle to E_CharacterState
Add value Walking to E_CharacterState
Add value Running to E_CharacterState
Add value Dead to E_CharacterState with display name "Character Dead"

Modify Values

Change Idle display name to "Standing Still"
Rename Walking to Moving

Remove Values

Remove the Dead value from E_CharacterState

DataTables

Add Rows

Add row "Sword" to DT_WeaponData with:
- Damage: 25
- AttackSpeed: 1.2
- WeaponType: Melee

Add row "Bow" to DT_WeaponData with:
- Damage: 15
- AttackSpeed: 0.8
- WeaponType: Ranged

Modify Rows

Set Damage to 30 for row "Sword" in DT_WeaponData
Update AttackSpeed to 1.5 for "Sword"

Remove Rows

Remove row "Bow" from DT_WeaponData

Example: Complete Data Setup

Create User Defined Struct S_ItemData with:
- FName: ItemID
- FText: DisplayName
- int: StackSize (default 1)
- float: Weight
- Texture2D: Icon (soft reference)
- E_ItemCategory: Category

Create User Defined Enum E_ItemCategory with:
- Weapon
- Armor
- Consumable
- Material
- Quest

Create DataTable DT_Items using S_ItemData:
Row "HealthPotion":
- ItemID: HealthPotion
- DisplayName: "Health Potion"
- StackSize: 10
- Weight: 0.5
- Category: Consumable

Row "IronSword":
- ItemID: IronSword
- DisplayName: "Iron Sword"
- StackSize: 1
- Weight: 5.0
- Category: Weapon

Tips

  1. Design structs first: Plan your data structure before creating DataTables
  2. Use enums for categories: Enums provide type safety for categorical data
  3. Soft references for assets: Use SoftObject/SoftClass for asset references to avoid hard dependencies
  4. Row naming: Use consistent, descriptive row names (PascalCase recommended)

On this page