ue-data-assets-tables
БесплатноБез исполняемых скриптовНе проверенUse when modelling designer-authored game data in C++ and loading it: data assets, data tables, curve tables, soft references and asset streaming. Also use…
от quodsoler★ 483 звезды на GitHubОб этом скилле
UE Data Assets and Tables
Target engine: UE 5.8. APIs below are verified against the 5.8 headers; older forms are listed under "Deprecated — do not use".
This skill covers designer-authored game data and the loading paths that bring it into memory: UDataAsset/UPrimaryDataAsset, UDataTable/UCurveTable, soft references, FStreamableManager, UAssetManager primary assets and cook rules, IAssetRegistry queries, the DataRegistry plugin and UDeveloperSettings. Build.cs modules: Engine and CoreUObject for data assets, tables and soft pointers; AssetRegistry for registry queries; DeveloperSettings for settings classes; DataRegistry for data registries. Deep dives live in asset loading patterns and data-driven design patterns.
Context
Read .agents/ue-project-context.md if it exists (module names, conventions, enabled plugins, custom UAssetManager subclass, registered primary asset types). Do not stop if it is missing.
Identify the area from the request and the codebase. Ask only when two plausible readings would produce different code.
| Request is about… | Go to |
|---|---|
| Picking a container for game data | Choosing a Data Container |
UDataAsset, UPrimaryDataAsset, asset bundles |
Data Assets |
Row structs, CSV/JSON import, FindRow |
Data Tables |
| Curves, table composition | Curve Tables and Composite Tables |
TSoftObjectPtr, FSoftObjectPath, memory budget |
References: Hard vs Soft |
| Async loading, handles, priorities | Async Loading |
FPrimaryAssetId, scanning, bundle states |
Asset Manager |
Cooking, chunking, PrimaryAssetTypesToScan |
Cook Rules |
| Finding assets without loading them | Asset Registry Queries |
| Sharing rows across sources at runtime | Data Registry |
| Project-wide tunables in Project Settings | Project Settings |
Choosing a Data Container
| Need | Use | Header |
|---|---|---|
| Per-object config, editor-authored, one asset per entry | UDataAsset |
Engine/DataAsset.h |
| Same, plus load/unload by id and cook rules | UPrimaryDataAsset |
Engine/DataAsset.h |
| Flat rows of identical shape, spreadsheet authored | UDataTable + FTableRowBase |
Engine/DataTable.h |
| Rows merged from several tables (DLC, overrides) | UCompositeDataTable |
Engine/CompositeDataTable.h |
| Float curves keyed by row name | UCurveTable, FCurveTableRowHandle |
Engine/CurveTable.h |
| One row id resolved across many sources at runtime | UDataRegistrySubsystem |
DataRegistrySubsystem.h |
| Project-wide tunables in Project Settings | UDeveloperSettings |
Engine/DeveloperSettings.h |
UDataAsset supports Blueprint subclasses and inheritance; UDataTable rows do not. UDataTable gives lookup by row name out of the box; data assets need an Asset Manager scan or an Asset Registry query to be discoverable.
Data Assets
UDataAsset is a plain UObject you can instantiate from the Content Browser. UPrimaryDataAsset adds GetPrimaryAssetId() so UAssetManager can scan, load and unload it by id.
// MyWeaponDefinition.h
#pragma once
#include "CoreMinimal.h"
#include "Engine/DataAsset.h"
#include "MyWeaponDefinition.generated.h"
class UTexture2D; class USkeletalMesh; // TSoftObjectPtr<T> needs T declared
UCLASS(BlueprintType)
class MYGAME_API UMyWeaponDefinition : public UPrimaryDataAsset
{
GENERATED_BODY()
public:
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Weapon")
FText WeaponName;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Weapon")
float FireRate = 1.f;
/** Written into the Asset Registry so it can be filtered without loading. */
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Weapon", AssetRegistrySearchable)
FName WeaponClassTag;
/** Bundles group soft references so the Asset Manager can load a subset. */
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Art", meta = (AssetBundles = "UI"))
TSoftObjectPtr<UTexture2D> Icon;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Art", meta = (AssetBundles = "Game"))
TSoftObjectPtr<USkeletalMesh> WorldMesh;
};
GetPrimaryAssetId() rules (Engine/DataAsset.h:36-53):
- The default returns type = name of the first native class going up the hierarchy (or the highest-level Blueprint class), name = the asset FName.
- Blueprint subclasses should be authored as Data Only Blueprints, not Data Asset instances, so parent-class edits propagate.
- Override only when you need a different type/name scheme; inside the class body the declaration i
Установить ue-data-assets-tables в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ue-data-assets-tables?
Use when modelling designer-authored game data in C++ and loading it: data assets, data tables, curve tables, soft references and asset streaming. Also use when the user mentions 'UDataAsset', 'UPrimaryDataAsset', 'UDataTable', 'FTableRowBase', 'FindRow', 'FDataTableRowHandle', 'TSoftObjectPtr', 'TSoftClassPtr', 'FSoftObjectPath', 'UAssetManager', 'LoadPrimaryAsset', 'FStreamableManager', 'RequestAsyncLoad', 'asset bundles', 'PrimaryAssetTypesToScan', 'IAssetRegistry', 'CSV import', or 'hard vs soft reference'. For save games, see ue-serialization-savegames; for UPROPERTY basics, see ue-cpp-foundations; for level streaming, see ue-world-level-streaming.
Как установить скилл ue-data-assets-tables?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ue-data-assets-tables запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic