Appearance
Fragment catalog
For editor names, configuration fields, and the supplied Blueprint UI fragments, see the Blueprint fragment catalog.
Lifecycle
Fragments are instanced configuration objects owned by definitions. They are not duplicated into every item as independent runtime state.
Item OnInstanceCreated() calls OnInstanceCreatedNative() and then OnItemInstanceCreated(). Container fragments similarly call the native hook and OnContainerInstanceCreated().
Use native hooks to initialize runtime instances. Treat the definition as shared configuration.
Presentation fragments
Header directory: Fragments/Item/.
Text
URicItemFragmentText stores localized FText Name, ShortName, and Description for the item's presentation.
Icon 2D
URicItemFragmentIcon stores UTexture2D* Icon. The widget decides how to display it.
World Mesh
URicItemFragmentWorldMesh stores Mesh and MeshScale, supporting static and skeletal mesh assets. Your world/preview actor creates mesh components.
Visual Resolver
URicItemFragmentVisualResolver stores VisualResolverClass. Its FindOrConstructVisualResolver() routes through the world cache with a context number.
Shape and rotation
Rectangular shape
URicItemFragmentJigsawItemShape stores FRicSize ItemShape and produces a filled mask.
Custom shape
URicItemFragmentJigsawItemShapeCustom stores FRicCustomShape ItemShape. Its enabled cells describe occupied geometry.
Both derive from URicItemFragmentJigsawShapeBase. Use one shape provider to avoid ambiguous matching.
Rotation
URicItemFragmentRotation stores bRotation90, bRotation180, and bRotation270. It provides per-item configuration for allowed rotations; project defaults are used when the item has no rotation fragment.
Runtime initialization
Stats
URicItemFragmentSetStats stores InitialItemStats, a tag-to-integer map. Its initialization hook adds these counts to the runtime item. See Gameplay tags and statistics for mutation, the shared interface, events, and replication.
Use it for maximum stack, initial condition, magazine capacity, and game-defined statistics.
Tags
URicItemFragmentGameplayTags stores InitialItemTags. Each is added to the instance with count 1. These tags can identify ammunition, equipment categories, or items accepted by a filter.
Nested inventory
Container Definition
URicItemFragmentContainer creates one nested container from ContainerDefinition.
Container Collection
URicItemFragmentContainerCollection creates nested containers from ContainerCollection. Use it for multiple pockets or compartments on one item.
Actions and magazines
Actions
URicItemFragmentActions stores ExecutableActionClasses. GetActionsCDO() returns their class default objects. Action handlers should not retain mutable per-item state.
Magazine Data
URicItemFragmentMagazineData stores AmmoItemDefinition. Inventory loading/unloading uses that definition to identify compatible ammunition. Weapon timing and firing behavior remain game code.
Main container fragments
Header directory: Fragments/Container/Types/.
URicContainerFragmentContainerBase stores ContainerClass and ContainerTag.
URicContainerFragmentJigsawFixedSizeselectsURicContainerJigsawFixedSizeand addsShape.URicContainerFragmentOneItemselectsURicContainerOneItem.
Assign one of these to the definition's main ContainerFragment; do not place implementation-selection fragments in the additional array.
Additional container rules
Header directory: Fragments/Container/.
URicContainerFragmentFilters stores filter classes and inheritance flags. URicContainerFragmentDynamicFilter stores GameplayTags, FilterType, and ApplyToAllChildren.
Initialization reads these rules and builds runtime filter state. Allow mode requires an item matching a configured tag; reject mode excludes matching items.
Native lookup
cpp
#include "Definitions/RicItemDefinition.h"
#include "Fragments/Item/RicItemFragmentText.h"
const URicItemFragmentText* Text = Definition
? Definition->FindFragment<URicItemFragmentText>() : nullptr;Handle missing fragments. The presence of a fragment is configuration, not proof that your widget or gameplay has implemented the corresponding behavior.