Welcome to SmartRefs
TSoftObjectPtr and TSoftClassPtr, giving you clean Blueprint nodes, priority-based background streaming, automatic memory management, and hitch-free asset unloading.Keep your game's memory footprint tiny and prevent loading hitches by streaming characters, weapons, and audio assets on demand in the background.
What is SmartRefs?#
Hard asset references are one of the most common causes of memory bloat in Unreal Engine. If your main menu references an inventory item that references a heavy 3D mesh, the entire mesh, its 4K textures, and materials are forced into memory at startup.
While Unreal provides Soft References to solve this, vanilla soft-reference workflows are cumbersome:
- Requiring nested Async Load Asset nodes with raw object casting.
- No built-in priority management or progress callbacks.
- Forgetting to unload assets leads to silent memory leaks.
SmartRefs provides a streamlined framework:
- Clean Async Nodes: Load any soft asset or class reference in a single node with typed output pins.
- Priority Queues: Ensure critical gameplay items load before cosmetic accessories.
- Smart Unloading: Automatically unloads assets when they are no longer in use, keeping VRAM clean.
Core Features#
| Capability | Description |
|---|---|
| Typed Async Loading | Load soft object or class pointers with automatic typing and zero manual casting. |
| Priority Streaming | Schedule background loads with High, Normal, or Low queue priority. |
| Batch Loading | Load entire arrays of weapons, skins, or audio clips with a single progress callback. |
| Memory Policies | Configure automatic asset release policies to prevent memory leaks in long play sessions. |
| Cook & Package Safe | Enforces clean dependency separation so unused assets are not cooked into your build. |
Quick Navigation#
Installation
Add SmartRefs to your Unreal Engine 5 project.
Quick Start Guide
Asynchronously load your first 3D mesh or weapon in 5 minutes.
Streaming Concepts
Understand soft references, cook separation, and memory budgets.
Features & Node Reference
Explore batch loading, priority queues, and memory unload policies.