Getting the model onto the player's device
NpcAct runs one model file, the NpcAct model, about 2.6 GB. This page covers where the file goes, how your game gets it there, and how much disk it needs.
The plugin never ships the model
The model is not in the Fab download, and a Shipping package never carries it. That holds even with Stage Model In Non-Shipping Builds switched on. Your game delivers the file itself.
Measured on the developer's Mac (Apple M2 Max), 2026-11-22, with the switch on:
- Shipping package: no model in the app, the pak and utoc listings, the staged files or the build receipt.
- Development package: the model at
Saved/NpcAct/npc_model_1.bin.
Your options
| Where it runs | How the file gets there |
|---|---|
| The editor (Play In Editor) | Project Settings → Plugins → NpcAct → Download. The file goes to <Project>/Saved/NpcAct/npc_model_1.bin. |
| Device tests (Development, DebugGame or Test packages) | Switch on Project Settings → Plugins → NpcAct → Packaging → Stage Model In Non-Shipping Builds. The package then carries the editor's copy, which adds 2.6 GB. Mac, Win64 and iOS only (see below). |
| Shipping | Your own download code, for example from a server you control (where to host it). Write the file to Get Model Path. |
Notes on staging:
- It is not available on Android: staged files go into the OBB, and the library can't open a file inside it.
- A change to the switch applies to the next package.
- Tested so far on Mac only.
For your own download:
- Download to a temporary name in the same folder.
- When it completes, rename it to the path from Get Model Path.
- Then call Is Model Present.
Blueprint functions
Get Model Path, Is Model Present and Exclude From Backup are under NPC → Model; Warm Up NPC Model and Load NPC Model are under NPC.
Get Model Path (pure) returns the absolute path the model is read from, and the place your download code writes to.
- In the editor, it is the file the settings page downloads.
- In a non-Shipping package with a staged copy, it is that copy.
- Otherwise, it is the platform's model folder (table below) plus
NpcAct/npc_model_1.bin. - Call it each time you need the path rather than saving the path. Android's own folders can move when the app moves to other storage (Android
Contextreference,getNoBackupFilesDir()).
Is Model Present (pure) is true when the file has exactly the size the plugin expects and starts with the model format's 8-byte signature.
- The file's name and where it came from don't matter.
- An empty Path means Get Model Path.
- When it is false, Detail says why: no file, the wrong size, or the wrong first bytes.
- Load NPC Model runs the same check before it opens the file and fails with ModelMissing or ModelInvalid.
Exclude From Backup keeps the file out of the player's backups where the platform has a per-file flag for it. It returns:
- Excluded
- NotApplicable (with the reason)
- Failed (with the reason)
Call it after every write or move of the file. Apple: "certain file operations can reset resource values, make sure you set an excluded file's resource values each time you save it."
Warm Up NPC Model loads the model and unloads it again, so the next Load NPC Model finds the compiled caches already written. If a model is already loaded, it returns at once.
Per platform
| Platform | Model folder (Get Model Path) | Compiled caches | Backups |
|---|---|---|---|
| Editor (Mac, Win64) | <Project>/Saved/ |
<Project>/Saved/NpcAct/Cache |
not applicable |
| Mac game | <Saved>/PersistentDownloadDir/ inside the game's container (UE 5.8 sandboxes Mac games) |
<Saved>/NpcAct/Cache |
NotApplicable: no per-file flag for a game |
| Win64 game | <Saved>/PersistentDownloadDir/ |
<Saved>/NpcAct/Cache |
NotApplicable: no per-file flag for a game |
| iOS | Documents/<Project>/PersistentDownloadDir/ |
Library/Caches/NpcAct/Cache |
Excluded: Exclude From Backup sets NSURLIsExcludedFromBackupKey and reads it back |
| Android | Context.getNoBackupFilesDir()/NpcAct/ |
Context.getCacheDir()/NpcAct/Cache |
NotApplicable: Auto Backup skips both folders |
iOS:
- The engine marks the PersistentDownloadDir folder as excluded from backup when it creates it, and iOS doesn't purge Documents.
- Apple calls the flag guidance, "not a mechanism to guarantee those items never appear in a backup".
Library/Cachesis left out of iCloud Backup. The system purges it from time to time, and the next load then compiles again.- Measured with the iOS build running on the developer's Mac (Designed for iPad), 2026-11-22, and on an iPhone Air (iOS 27.3), 2026-11-23: the flag read back true and 10/10 turns ran each time.
Android:
- "Auto Backup excludes files in directories returned by
getCacheDir(),getCodeCacheDir(), andgetNoBackupFilesDir()." - Of
getCacheDir(): "The system will automatically delete files in this directory as disk space is needed elsewhere." If that happens, the next load compiles again. - Measured on a Galaxy S26+, 2026-11-22: Get Model Path returned
npc_model_1.biningetNoBackupFilesDir()/NpcAct/, the model loaded from there, and the caches were written undergetCacheDir()/NpcAct/Cache. Exclude From Backup returned NotApplicable.
Free space
The first load on each backend (GPU, CPU) compiles caches for it. Plan for the model plus those caches. Measured sizes, in bytes:
| What | Bytes | Measured on |
|---|---|---|
| Model file | about 2.6 GB | the file itself (the plugin checks its exact size) |
| First-load caches, GPU + CPU | 1,577,592,536 | Android emulator (arm64), 2026-11-21 |
| First-load caches, GPU + CPU with speculative decoding | 1,662,441,160 | the developer's Mac (M2 Max), 2026-11-22 |
| of which the GPU folder | 830,177,256 | same Mac |
| of which the CPU folder | 832,263,904 | same Mac |
| First-load caches, GPU only | 15,261,800 | Samsung Galaxy S26+ (Exynos 2600), 2026-11-22 |
| First-load caches, CPU with speculative decoding | 831,215,328 | same phone |
The emulator figure breaks down as:
- CPU caches: 788,412,736
- GPU weights: 776,629,712
- GPU programs: 12,550,088
On the S26+ the GPU wrote compiled programs only (14,523,608 + 737,648 bytes, plus weight-cache files of 336 and 208 bytes), with nothing like the emulator's GPU weights. GPU and CPU together come to 846,477,128 bytes there.
Notes:
- A device that only runs on the GPU writes only the GPU folder. A fallback to the CPU adds the CPU folder.
- On that Mac, the model plus both folders is about 2.6 GB + 1.7 GB, about 4.3 GB.
- The caches are kept per catalog model (its file name and size). When a plugin update changes the model, the first load deletes the old model's caches.
Warm up at a loading screen
The first load compiles the caches, so it is slow. Later loads read them. Measured GPU loads:
| Device | First load | A later load |
|---|---|---|
| Samsung Galaxy S26+ (Exynos 2600), Development package, 2026-11-21 | 5.00 s | 2.09 s |
| iOS build on the developer's Mac (Designed for iPad), 2026-11-21 | 7.09 s | 1.58 s |
| iPhone Air (iOS 27.3), Development package, 2026-11-23 | 10.57 s | not measured |
| Android emulator (arm64), 2026-11-21 | 11.44 s | 2.53 s |
| Mac editor (M2 Max) | 1.64–3.24 s (2026-11-21) | 0.35 s (2026-11-20) |
A first load on a busy machine can also stall the editor or the game while it runs (Troubleshooting).
To keep the slow first load out of play, run Warm Up NPC Model once at a loading screen after the file arrives. After a warm-up on the developer's Mac (2026-11-22), the next load and its first turn added no cache file, and the four GPU cache files kept their sizes and times.
Run it again after an OS purge (iOS, Android). A load after a purge is a first load again.
Where to host the file
Host the file on a server you control, and download it from there.
A game that downloads the model at run time from the public host the plugin's catalog points to tells anyone who watches their own device's traffic where the file came from. The connection is encrypted, but the server's name is sent in the clear when it opens (TLS SNI), so a player with a proxy on their own phone or PC sees the host name. A host of your own shows only your name. The file is the same either way: Is Model Present checks its size and first bytes, not where it came from.
The editor's Download button fetches from that public host. That is on your machine, not the player's.
The licence goes with the file
The model is licensed under Apache 2.0 because its publisher releases it under that licence, not because model weights are Apache-licensed in general (Licences gives the publisher's page).
Your game distributes the file, so your game passes the licence on with it:
- Include the Apache 2.0 text.
- Include any NOTICE that comes with the model.
You can ship them as a text file in your game or put them on the legal page you host. The settings page shows and links the licence. Licences covers the plugin's own third-party notices too. This is not legal advice.