create_struct
Create custom Unreal Engine structs to group related variables as a single data type, enabling cleaner data handling and parameter passing.
Instructions
Create a custom Struct asset.
Structs group related variables together into a single data type, making it easy to pass multiple values as one parameter.
Args: struct_name: Struct name (e.g., "S_PlayerData") fields: List of field dicts: [{"name": "Health", "type": "Float"}, {"name": "PlayerName", "type": "String"}, {"name": "Score", "type": "Integer"}] path: Content browser path
Field types: Boolean, Integer, Float, Double, String, Name, Text, Vector, Rotator, Transform, Color, LinearColor
KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: create_struct(struct_name="ExampleName", fields=[])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | /Game/Data | |
| fields | Yes | ||
| struct_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |