ue-core-types-and-containers
Installation
SKILL.md
Core types & containers
Unreal ships its own containers, string types, and math types. Use them, not std:::
they integrate with UObject reflection, serialization, allocators, and garbage collection.
Mixing in std::string or std::vector causes friction and these types won't serialize
or reflect correctly.
When to use this skill
- Storing collections: choose
TArray/TMap/TSetoverstd::vector/std::map/std::set. - String work: pick
FString(mutable),FName(identifier), orFText(user-facing / localized). - 3D math:
FVector,FRotator,FQuat,FTransform, andFMathhelpers. - Reaching for
std::optional,std::variant, orstd::tuple: useTOptional,TVariant,TTuple. - Thread-safe producer/consumer:
TQueueover a lockedTArray.