Load your first model with Blueprint
Install the source plugin in your Unreal project, then follow a Blueprint-first path to load and process a Fragments model.
1. Get the plugin ready
Use the repository and Epic references below, then choose a copy method. The repository README is the source of truth for branch-specific requirements.
REPOSITORYSearch FragmentsUnreal on GitHub ↗Use the Code menu to clone the source or download a ZIP.
EPIC GAMES / PROJECT FILE GUIDEGenerate Visual Studio project files ↗Epic explains how to create the project files needed to build Unreal C++ projects.
Choose a copy method
Option A / Clone with Git
- Open the FragmentsUnreal repository on GitHub.
- Select Code → HTTPS and copy the repository URL.
- Run
git clone [paste the copied URL]in your source projects folder. - Open the cloned repository folder in File Explorer.
Option B / Download a ZIP
- Select Code → Download ZIP on the repository page.
- Right-click the download and choose Extract All.
- Open the extracted repository folder.
Copy and build the plugin
- Find
FragmentsUnreal.uplugin. The folder containing this file is the plugin root.
FragmentsUnreal.uplugin.- Create
Pluginsin your Unreal project if needed. Copy the plugin root into it and name the folderFragmentsUnreal. The final path is[YourProject]/Plugins/FragmentsUnreal/FragmentsUnreal.uplugin.
.uproject file.- Close Unreal Editor before building. If the host project is Blueprint-only, add a C++ class once so Unreal creates the project build target.
- Right-click
[YourProject].uproject, choose Generate Visual Studio project files, and open the generated.sln.
.uproject file.- In Visual Studio select Development Editor, Win64, and
[ProjectName]Editor. Choose Build → Build Solution.
- Open the project, go to Edit → Plugins, search for FragmentsUnreal, enable it, and restart the editor.
Check that the .uplugin file is inside [Project]/Plugins/FragmentsUnreal, then regenerate project files and reopen the project.
2. Load your first model in the Editor
The FragmentsEditor module includes a dockable Fragments Viewer tab for importing a .frag file directly into the Unreal Editor. Use this path when you want to inspect a model, save its placement, or prepare an editor level before building a runtime flow.
Open the Fragments Viewer
- Confirm that FragmentsUnreal is enabled in Edit → Plugins, then restart Unreal Editor if it was just enabled.
- Open the editor menu and choose Window → Fragments Viewer. The tab is registered by the
FragmentsEditormodule and opens with the panel title FragmentsUnreal.
Choose the model and origin
- In the panel, use the Fragment File field or its browse button to select a
.fragfile. The field hint is Select a .frag file. - Choose an origin mode: Use World Origin places the model at the level origin; Use Base Coordinates preserves the source base-coordinate transform.
.frag file and choose Use World Origin or Use Base Coordinates.Import and process
- Click Load Fragment. The editor shows an Importing fragment... progress dialog while it loads and processes the model.
- When processing finishes, the model appears in the level and is added to Cached Fragments. Use the search field to find a cached model, then select its details row to inspect it.
Inspect and save the result
- In the Fragment details view, confirm the Name, GUID, and Alias fields. The same panel contains material overrides, visibility controls, and placement actions.
- Use Save Placement to write the actor transform to the sidecar. Use Reset Placement to clear the saved transform and return the actor to its default placement.
3. Load your first model with Blueprint
Place the flow in an Actor Blueprint or the Level Blueprint. The load is asynchronous: wait for its completion event, check success, then pass the returned Model Guid into Process Loaded Fragment.
- Get the Fragments Importer Subsystem from the Game Instance.
- Add Make Fragment Load Options and choose an origin mode.
- Call Load Fragment Async, set Frag Path to your
.fragfile, and connect the options. - Handle On Complete, branch on Success, and keep the returned Model Guid.
- On success call Process Loaded Fragment with the Model Guid and owner Actor.
- On failure display the returned error message while developing.
4. Common Blueprint nodes
Load Fragment AsyncProcess Loaded FragmentGet Elements By CategoryGet Element DetailGet Item Property SetsUnload Fragment
C++ path
The same load → completion → process sequence is available in C++:
UFragmentsImporterSubsystem* Importer =
GetGameInstance()->GetSubsystem<UFragmentsImporterSubsystem>();
FFragmentLoadOptions Options;
Options.OriginMode = EFragmentOriginMode::UseBaseCoordinates;
Importer->LoadFragmentAsync(FragPath, Options, OnLoadComplete);
if (bSuccess)
{
Importer->ProcessLoadedFragment(
ModelGuid, OwnerActor, false, OnProcessComplete, nullptr);
}