create_data_registry
Create and save a UDataRegistry asset and assign its ItemStruct so DataTable sources share a matching RowStruct. Re-running returns the existing asset without duplication.
Instructions
Create and save a UDataRegistry asset. The registry's ItemStruct is set to the named UScriptStruct (e.g. "MirrorTableRow"); DataTable sources attached later must use a matching RowStruct. Idempotent: re-loads and returns an existing asset.
Returns: { registry_path: string, registry_type: string, item_struct: string, success: bool, already_exists: bool, type_verified: bool, struct_verified: bool, saved: bool, save_error: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_struct | Yes | Name of the UScriptStruct used for items (e.g. "MirrorTableRow"). | |
| package_path | No | Destination /Game folder (default /Game/DataRegistries). | |
| registry_name | Yes | Name of the new UDataRegistry asset. | |
| registry_type | No | RegistryType FName (defaults to registry_name). |