Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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
Полный SKILL.md на GitHub

Установить ue-data-assets-tables в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/asset-loading-patterns.mdreferences/data-driven-design.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить ue-data-assets-tables с