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 TagsModify Fields
Change the default value of Health to 100
Rename Level field to CharacterLevel
Change Tags type from array of Names to array of StringsRemove Fields
Remove the SpawnLocation field from S_CharacterStatsSupported 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 MovingRemove Values
Remove the Dead value from E_CharacterStateDataTables
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: RangedModify 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_WeaponDataExample: 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: WeaponTips
- Design structs first: Plan your data structure before creating DataTables
- Use enums for categories: Enums provide type safety for categorical data
- Soft references for assets: Use SoftObject/SoftClass for asset references to avoid hard dependencies
- Row naming: Use consistent, descriptive row names (PascalCase recommended)