Custom Data
Custom data lets you add your own fields to prefabs. You write a small JSON file, a manifest, that lists the fields and the prefabs that get them. The Inspector then shows a section with those fields on each of those prefabs. The values are saved with the scene and the exported map, for server plugins.
Use it when a plugin needs settings for each object on the map: a loot tier for a crate, a patrol mode for a spawner, a message for a sign.

Where manifests go
RustEdit reads every .json file in the Custom Prefab Fields folder, sub folders too. To set the folder, open , then Paths, and set Custom Prefab Fields. When no folder is set, RustEdit uses the CustomPrefabFields folder next to the app and makes it if it is missing. A change to this setting needs a restart.
The first time RustEdit starts, it writes an example manifest, example.json, into the folder. It has every field type. Its prefab paths match no prefab, so it adds nothing to your maps. It is also a custom entity kind: you find it in the Content Browser as Server Objects > RustEdit > Example Fields. Copy it to start your own manifest. RustEdit writes the example only once: if you delete it, it does not come back. If you delete the whole folder, RustEdit makes it again with the example.
How to add fields to prefabs
- Open the Custom Prefab Fields folder.
- Copy
example.jsonand give the copy a new file name. - In the copy, set a unique
name, for example"MyPlugin.CrateSettings". - Put the prefab paths in
prefabs. To get a prefab's path, select it in the scene and use Copy Asset Path(s) in the Name row of the Inspector. - Edit the
fieldslist. - Save the file.
- Click . RustEdit reads the manifests again.
- Select one of the prefabs. The Inspector shows a section with your fields.
For every key and field type a manifest can have, see Custom Data Manifests.
Make a manifest in RustEdit
You can make and change manifests without writing JSON. Open .

The list on the left shows every manifest file in the Custom Prefab Fields folder. A cube marks a custom entity kind. A warning sign marks a file that did not load: open it to see what to fix.
- Click New Manifest, or click a manifest in the list.
- Fill in Name, Title, Author and the other boxes.
- To make it a custom entity kind, turn on Custom Entity. The Prefabs list hides: a custom entity kind needs no prefabs.
- Otherwise, click + on Prefabs and type a prefab path in each row.
- Click + on Fields to add a field. Click a field's row to open it, then set its Name, Type, Label, Description and Default. Number fields also have Min and Max. Enum fields have Options, with a comma between them. Text fields have Multiline.
- Click Save. RustEdit writes the file and reads every manifest again. The Inspector and the Content Browser show the change at once.
A new manifest's file gets the manifest's Name, for example MyPlugin.CrateSettings.json.
- A line at the bottom left says what is wrong when the manifest cannot be saved, for example two fields with the same name.
- When you go to another manifest or close the dialog with unsaved changes, RustEdit asks before it drops them.
- Delete deletes the manifest's file, after it asks. Values already saved in your scenes and maps stay there.
Edit the values
A manifest's section shows when every selected object is a prefab that the manifest lists. One prefab can get sections from more than one manifest. The sections come after the prefab's own panels, in the order of their file paths.
- Each field type has its own control: a toggle for
bool, a number box or slider forintandfloat, a text box forstring, a dropdown forenum, X, Y and Z boxes forvector3, and a color picker with opacity forcolor. - Select several prefabs to edit them together. A field shows a dash when the selected prefabs have different values. A change goes to all of them.
- Each change is one undo step. Changes to the same field within a second join into one step, so a slider drag is one step.
- To go back to the manifest's defaults, click the ⋮ button on the section's title row, then click Reset to Defaults. It resets every field of the section on the selected prefabs, as one undo step.
- Parts of a placed monument show their values, but you cannot change them. Their values come from the monument's file.
How values are saved
Each prefab saves every field of every manifest that lists it, also fields you did not change.
- The values go into the scene file and into the RustEdit data of the exported map. This includes prefabs that go into Rust's own prefab list.
- When you export with an encryption key, this data is encrypted with it.
- When you open an exported RustEdit 2 map, the prefabs get their values back.
- A map exported with Entities set to In the map has no RustEdit data, so it has no custom data. See In the map or in RustEdit data.
- On the server, the RustEdit 2 server extension reads the custom data of the map. See RustEdit 2 Server Extension.
- Duplicate copies the values to the new objects.
Because every value is saved, changing a default in the manifest does not change prefabs in scenes you saved before. They keep the old value.
Values are kept when a manifest is missing. If you open a scene on a computer without the manifest, or a manifest no longer lists a prefab, the values stay on the prefab and are saved again. The Inspector shows them in the Unused Custom Data panel, where you can remove them.
The value of a field that you took out of a manifest is kept and saved again too, but the Inspector does not show it.
Troubleshooting
| Problem | What to do |
|---|---|
| The section with my fields does not show. | Check that the prefab path is right, and that every selected object is a prefab the manifest lists. Then click . |
| A manifest is not loaded. | The Notifications panel says why. See the warnings in Custom Data Manifests. |
My new default does not show on prefabs I placed before. | Saved prefabs keep the value they had. Change the value in the Inspector, or click Reset to Defaults. |