Logotipo de Ue Asset Management

Ue Asset Management

Comunidad
kevinpbuckley
ue-asset-management

Reference and load Unreal assets correctly — hard vs soft references (TObjectPtr vs TSoftObjectPtr/TSoftClassPtr), virtual content paths, FSoftObjectPath, async loading with FStreamableManager and FStreamableHandle, the Asset Registry for querying without loading, ConstructorHelpers::FObjectFinder, UAssetManager/primary data assets, and asset bundles. Use when choosing a reference type, fixing load hitches or cook/memory bloat from hard references, loading assets on demand (level streaming, DLC, runtime content), enumerating or filtering assets without loading, or setting up a managed primary-asset pipeline with UPrimaryDataAsset.

Descripción general

Editorkevinpbuckley
Repositoriounreal-engine-skills
Nombre de la habilidadue-asset-management
Estrellas
89
Forks
9
Archivos incluidos
3
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 3

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por kevinpbuckley en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Ue Asset Management en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-asset-management
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/unreal-engine-skills.git /tmp/unreal-engine-skills
mkdir -p .claude/skills
cp -r /tmp/unreal-engine-skills/skills/core/ue-asset-management .claude/skills/ue-asset-management
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Ue Asset Management en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Ue Asset Management automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Ue Asset Management no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Asset management

Every .uasset is a UObject in a package addressed by a virtual path. The single most important decision is hard vs soft reference: it determines what loads into memory (and gets cooked) with your class. Wrong choices here cause load hitches and bloated memory/package sizes.

When to use this skill

  • Choosing how a class references a mesh, material, sound, Blueprint, or data asset.
  • Load hitches, or memory/cook size ballooning due to too many hard references.
  • Loading content on demand (level-streaming-friendly, plugin/DLC content).
  • Enumerating or filtering assets at runtime without loading them.
  • Setting up a UPrimaryDataAsset pipeline with UAssetManager for large-content games.

Content paths

  • /Game/... → project Content/; /Engine/... → engine content; /PluginName/... → a plugin.
  • Full object reference string: /Game/Weapons/SM_Rifle.SM_Rifle (Package.Object).
  • Never use OS filesystem paths in C++ asset references; always virtual paths.

Hard vs soft references (the key distinction)

KindTypeWhen the target loadsUse for
Hard (object)TObjectPtr<UTexture2D> (UPROPERTY)when the owner loadssmall, always-needed assets
Soft (object)TSoftObjectPtr<UTexture2D>only when you load itheavy/optional/occasional assets
Soft (class)TSoftClassPtr<AActor>only when you load itclasses you spawn conditionally
cpp
UPROPERTY(EditAnywhere, Category=Mesh)
TObjectPtr<UStaticMesh> AlwaysMesh;       // hard: loads with owner

UPROPERTY(EditAnywhere, Category=Audio)
TSoftObjectPtr<USoundBase> RareSfx;      // soft: path-only until loaded

UPROPERTY(EditAnywhere, Category=Spawning)
TSoftClassPtr<AActor> BossClass;         // soft class ref

A hard reference pulls the target and all its dependencies into memory and into the cook whenever the referencing class loads. A class loaded everywhere (e.g. GameInstance, a base ACharacter) holding hard refs to many heavy assets is a classic memory/cook bloat bug — switch to soft refs there.

TSoftObjectPtr stores an FSoftObjectPath internally. IsNull() checks whether the path is empty; IsValid() checks whether the object is currently resident in memory. These are different: a non-null soft ptr can return false for IsValid() if the asset hasn't been loaded yet.

cpp
// Do NOT confuse IsNull (empty path) with IsValid (loaded and in memory):
if (!RareSfx.IsNull() && !RareSfx.IsValid())
{
    // Path is set but asset is not loaded — load it before use.
}
if (USoundBase* S = RareSfx.Get())      // returns nullptr if not in memory
{
    // asset is resident
}

Loading soft references

Sync — use sparingly, blocks the game thread:

cpp
if (UStaticMesh* M = MeshSoftPtr.LoadSynchronous())
{
    // M is now resident; do not call in hot paths
}

Async (preferred) via the streamable manager:

cpp
#include "Engine/AssetManager.h"
TSharedPtr<FStreamableHandle> Handle =
    UAssetManager::GetStreamableManager().RequestAsyncLoad(
        RareSfx.ToSoftObjectPath(),
        FStreamableDelegate::CreateUObject(this, &AMyActor::OnSfxLoaded));
// Store Handle as a UPROPERTY-adjacent member; releasing it may allow GC.

Keep the returned TSharedPtr<FStreamableHandle> as long as you need the asset resident. Releasing the handle removes the streamable manager's hard GC reference to the loaded asset. Call Handle->ReleaseHandle() explicitly to unload, or let the TSharedPtr go out of scope.

See references/streamable-manager.md for the full async loading workflow, batch loading, combined handles, and progress tracking.

Referencing engine/known content in C++ constructors

ConstructorHelpers::FObjectFinder and FClassFinder resolve assets in the constructor only:

cpp
#include "UObject/ConstructorHelpers.h"

AMyActor::AMyActor()
{
    static ConstructorHelpers::FObjectFinder<UStaticMesh>
        MeshObj(TEXT("/Engine/BasicShapes/Cube.Cube"));
    if (MeshObj.Succeeded())
        Mesh->SetStaticMesh(MeshObj.Object);
}

Use this only for stable engine content or prototypes. For game content, prefer a soft/hard UPROPERTY assigned in a Blueprint subclass — it's data-driven and avoids hard-coding paths. FObjectFinder called outside a constructor fails/asserts at runtime.

Asset Registry — query without loading

The Asset Registry stores metadata gathered from .uasset file headers. Use it to discover and filter assets without loading them; then load only the ones you need.

cpp
#include "AssetRegistry/AssetRegistryModule.h"

IAssetRegistry& AR = FModuleManager::LoadModuleChecked<FAssetRegistryModule>("AssetRegistry").Get();

// Query all UStaticMesh assets (no load triggered):
TArray<FAssetData> Assets;
AR.GetAssetsByClass(UStaticMesh::StaticClass()->GetClassPathName(), Assets);

// Multi-criterion filter:
FARFilter Filter;
Filter.ClassPaths.Add(UStaticMesh::StaticClass()->GetClassPathName());
Filter.PackagePaths.Add(TEXT("/Game/Meshes"));
Filter.bRecursivePaths = true;
AR.GetAssets(Filter, Assets);

// FAssetData carries: PackageName, PackagePath, AssetName, TagsAndValues, AssetClassPath
// Convert to a loaded object only when needed:
UObject* Loaded = Assets[0].GetAsset();  // loads on call

Properties marked UPROPERTY(AssetRegistrySearchable) appear in TagsAndValues for filtering. See references/asset-registry.md for filter construction, searchable tags, async discovery callbacks, and commandlet use.

UAssetManager & primary assets (for scale)

UAssetManager wraps an FStreamableManager and adds discovery, typed loading, and asset bundles. This is the right tool when you have a large content library, DLC, or chunked delivery.

Primary vs secondary assets:

  • A primary asset is one the Asset Manager directly tracks — identified by FPrimaryAssetId (FPrimaryAssetType + FName). Only levels (UWorld) are primary by default.
  • A secondary asset is everything else; the engine loads secondaries automatically when they are hard-referenced by a primary.

The minimal primary asset setup — inherit UPrimaryDataAsset:

cpp
// WeaponData.h
UCLASS(BlueprintType)
class MYGAME_API UWeaponData : public UPrimaryDataAsset
{
    GENERATED_BODY()
public:
    UPROPERTY(EditDefaultsOnly, Category=Display,
              meta=(AssetBundles="UI"))
    TSoftObjectPtr<UTexture2D> Icon;

    UPROPERTY(EditDefaultsOnly, Category=Display,
              meta=(AssetBundles="Game"))
    TSoftObjectPtr<UStaticMesh> WeaponMesh;
};

Register the type in Project Settings → Asset Manager, then load by ID:

cpp
FPrimaryAssetId WeaponId(TEXT("WeaponData"), TEXT("Rifle_01"));
UAssetManager::Get().LoadPrimaryAsset(WeaponId, {TEXT("UI")},
    FStreamableDelegate::CreateUObject(this, &AMyHUD::OnWeaponLoaded));

Asset bundles let you load only the assets each context needs (UI vs in-game vs offline).

See references/asset-manager-and-bundles.md for full UPrimaryDataAsset, bundle registration, LoadPrimaryAssetsWithType, UnloadPrimaryAssets, and ChangeBundleStateForPrimaryAssets.

Module dependencies

Add to your Build.cs as needed:

ModuleNeeded for
"Engine"UAssetManager, FStreamableManager, ConstructorHelpers
"AssetRegistry"IAssetRegistry, FAssetData, FARFilter
"CoreUObject"TSoftObjectPtr, TSoftClassPtr, FSoftObjectPath

Gotchas

  • Hard refs from widely-loaded classes → memory/cook bloat. Put heavy assets behind soft refs.
  • LoadSynchronous during gameplay → frame hitch. Load async ahead of when you need it.
  • Hard-coded path strings in C++ → brittle. Expose UPROPERTY refs that designers can change.
  • IsNull vs IsValid confusion — IsNull() tests whether the path is empty; IsValid() tests whether the object is resident in memory. A non-null soft ptr may not be valid yet.
  • Dropping the streamable handle → loaded assets can be GC'd; keep the handle alive.
  • FObjectFinder outside a constructor → fails/asserts; constructor-only.
  • Forgetting AssetRegistry module dep → IAssetRegistry link errors at compile time.
  • Asset Registry in cooked builds → the in-memory database reflects the cook; queries work but the registry is read-only and populated from the cook's serialized registry data.
  • GetAssetsByClass with UE5 class path API — pass GetClassPathName() (returns FTopLevelAssetPath), not GetFName(), to match the 5.1+ API.

Version notes

  • TObjectPtr<T> is the UE5+ idiom for hard-reference UPROPERTYs; older code uses raw T* (still valid). See ue-memory-and-gc.
  • FSoftObjectPath replaced FStringAssetReference (UE4 name, deprecated).
  • GetClassPathName() returning FTopLevelAssetPath was introduced in UE 5.1; legacy code may pass GetFName() to GetAssetsByClass — this still compiles but uses the old overload.
  • IsValid() was deprecated as a static (UAssetManager::IsValid()) in UE 5.3; call UAssetManager::IsInitialized() instead.

References & source material

Engine source (UE 5.8, under Engine/Source/):

  • Runtime/Engine/Classes/Engine/StreamableManager.h — FStreamableManager:731, FStreamableHandle:196, RequestAsyncLoad:756, LoadSynchronous:800, FStreamableDelegate alias:38.
  • Runtime/Engine/Classes/Engine/AssetManager.h — UAssetManager:83, GetStreamableManager():105, LoadPrimaryAsset:333, UnloadPrimaryAssets:367, ChangeBundleStateForPrimaryAssets:390.
  • Runtime/CoreUObject/Public/UObject/SoftObjectPtr.h — FSoftObjectPtr:44, TSoftObjectPtr:173, TSoftClassPtr:795, LoadSynchronous:82/547, IsValid:571/933, IsNull:592/954, ToSoftObjectPath:96/604.
  • Runtime/CoreUObject/Public/UObject/PrimaryAssetId.h — FPrimaryAssetType:27, FPrimaryAssetId:133.
  • Runtime/Engine/Classes/Engine/DataAsset.h — UDataAsset:17, UPrimaryDataAsset:47, GetPrimaryAssetId:53.
  • Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h — GetAssetsByClass:335, GetAssets:363, GetDependencies:517, GetReferencers:580.
  • Runtime/AssetRegistry/Public/AssetRegistry/AssetRegistryModule.h — FAssetRegistryModule:26, Get():34.
  • Runtime/CoreUObject/Public/UObject/ConstructorHelpers.h — FObjectFinder:77, FClassFinder:157.

Official docs (UE 5.8):

Deep-dive references in this skill:

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Ue Asset Management?

Reference and load Unreal assets correctly — hard vs soft references (TObjectPtr vs TSoftObjectPtr/TSoftClassPtr), virtual content paths, FSoftObjectPath, async loading with FStreamableManager and FStreamableHandle, the Asset Registry for querying without loading, ConstructorHelpers::FObjectFinder, UAssetManager/primary data assets, and asset bundles. Use when choosing a reference type, fixing load hitches or cook/memory bloat from hard references, loading assets on demand (level streaming, DLC, runtime content), enumerating or filtering assets without loading, or setting up a managed prima...

¿Por qué usar Ue Asset Management en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Ue Asset Management está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Ue Asset Management en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-asset-management. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Ue Asset Management?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Ue Asset Management?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Ue Asset Management con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Ue Asset Management?

kevinpbuckley la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇