Prefabs
A prefab is a reusable assembly of objects stored in the project’s prefab library. It keeps each member’s transform, model, materials, physics, scripts, Blueprints and Group hierarchy. Placed instances are linked to their prefab by default, so editing the prefab updates every instance while keeping each instance’s own changes.
Capture a prefab
Section titled “Capture a prefab”- Open Window → Prefab library.
- Under Capture an assembly, check the scene objects that form the assembly, or use Add selected object. Selecting a Group includes its whole subtree.
- Set the pivot, or click Use selected position. The pivot anchors placement.
- Enter a Prefab name and click Capture new prefab.
Capturing a child without its parent turns it into a root at the same world pose.

Place a prefab
Section titled “Place a prefab”- Select a prefab in the library.
- Set the X and Z position and the Height above the landscape.
- Leave Link new instances to the prefab on to place a linked instance, or turn it off to place independent copies.
- Click Place prefab.
All members appear together with fresh IDs, as one undo step. Root members keep their spacing on uneven terrain: terrain compensation is applied once per root. A prefab with several roots is placed under a new Group named after the prefab.
Linked instances and overrides
Section titled “Linked instances and overrides”Edit a member of a linked instance as usual. Each change you make is recorded as an override on that instance. When you select an instance, the library’s Selected instance section offers:
| Action | Result |
|---|---|
| Apply to prefab | Pushes the instance’s overrides into the prefab, then updates every other linked instance |
| Revert / Revert all | Restores one override, or all of them, to the prefab’s values |
| Unlink instance | Turns the instance back into plain objects, unchanged |
Use Replace selected template… to rebuild a prefab from the checked objects. Linked instances follow it and keep their overrides.
Updates propagate to instances in every level and to prefabs that nest this one. The instance root’s own position, rotation and scale always belong to the instance and are never overrides.
Object references
Section titled “Object references”When a prefab is placed, internal references follow the new IDs: parent relationships, typed
Blueprint Other ID is contact filters that point at other members, joint targets and switch
targets. References to objects outside the prefab, and the reserved player and world identities,
stay as they are.
Script source text is copied verbatim. A hard-coded ID such as other_id_is("14") is not rewritten.
Parameters
Section titled “Parameters”A parameter is a typed value a prefab exposes, such as a lamp’s brightness or a door’s key. Members’
scripts read it with param("id"), and each placed or spawned instance can set its own value, so one
prefab serves many uses without copies.
- Select a prefab in Window → Prefab library.
- Under Parameters, type an id such as
brightness, choose a kind and click Add parameter. - Edit the default value in the parameter’s row. The trash button removes it.
- Select a placed instance. The Selected instance section lists every parameter with this instance’s value. Change it there; the reset button goes back to the prefab’s default.
| Field | Description |
|---|---|
id |
Lowercase letters, digits and _, starting with a letter; up to 48 characters |
label |
Shown in the editor; defaults to the id |
kind |
Number, Integer, Toggle, Text or Color |
value |
The default |
min, max, step, unit |
Range and editing step for numbers |
description |
Up to 400 characters |
An instance stores only the values that differ from the default. Values are checked against the kind and range: an out-of-range value is rejected. Changing a parameter’s range drops instance values that no longer fit.
Description… gives the prefab a short description of what it is for, up to 1,000 characters, shown in the library.
Variants
Section titled “Variants”A variant is a new prefab that contains a linked instance of another one. It follows every later
change to its parent, inherits the parent’s parameters and keeps its own changes. Select a prefab,
click Create variant…, name it and click Create variant. Then add members, change them or add
parameters of its own. Inherited parameters show as (inherited) in the library; a variant can give
them new defaults with prefab.variant.
Prefabs in scripts
Section titled “Prefabs in scripts”Scripts can place a whole prefab during Play — members, hierarchy, physics, scripts and Blueprints — with fresh IDs. Spawned instances are removed when Play stops, and saved games keep them with their place and parameter values; their scripts start fresh after a load.
| Function | Description |
|---|---|
spawn_prefab(prefab, x, y, z) |
Spawns a prefab by name or ID and returns its root ID; height is above the terrain |
spawn_prefab(prefab, x, y, z, yaw), spawn_prefab(prefab, x, y, z, yaw, #{id: value}) |
Also turns it by yaw degrees and sets parameter values |
param(id), param(id, default) |
A parameter of the instance this object belongs to; in object scripts |
instance_root() |
The root ID of the instance this object belongs to; in object scripts |
param_of(object, id), param_of(object, id, default) |
A parameter of the instance that owns object |
params_of(object) |
Every parameter value of the instance, as a map |
set_param(object, id, value) |
Changes a parameter of a running instance |
prefab_of(object), instance_root_of(object) |
The instance’s prefab name, or its root ID |
instances_of(prefab) |
Root IDs of every instance of a prefab in the running game |
despawn(root) |
Removes a spawned instance and all its members |
param without a default raises an error when the parameter does not exist or the object is not part
of a prefab instance. Blueprint expressions can call param(name) and instance_root() too.
// A world script: three lamps along the road, each a little brighter.fn start() { for i in 0..3 { spawn_prefab("Lamp", i * 6.0, 0.0, 10.0, 90.0, #{brightness: 1.0 + i}); }}Example: repaint every signpost at once
Section titled “Example: repaint every signpost at once”You’ll turn a Group into a prefab, place two linked copies, then recolour one copy and push the
change to all of them. Start from the signpost built in the Objects and groups
example: a Group named
Signpost (ID 1) at X 10, Z −5 with a Post and a Board.
- Open Window → Prefab library.
- Under Capture an assembly, select Signpost in the viewport and click Add selected object. The Group brings its two children with it.
- Click Use selected position to put the pivot on the Group, enter
Signpostas the Prefab name and click Capture new prefab. - With the new prefab selected in the library, set X to
0, Z to10and Height to0. Leave Link new instances to the prefab on and click Place prefab. - Set X to
-10and click Place prefab again. - Select the Board of the first copy. In Details → Appearance, set Base colour to
#E6331A. The library’s Selected instance section now reads1 overrides · 3 membersand lists#3 · color. - Click Apply to prefab. The second copy’s board turns red too.
The original Group you captured is not linked to the prefab, so it keeps its white board.
Do the same from the command line, in the same project. The placed copies receive IDs 4–6 and 7–9:
feather-cli --workspace ./signpost --project project.feather.json command prefab.capture \ --json '{"ids":[1],"name":"Signpost","origin":[10,0,-5]}' --save project.feather.json
feather-cli --workspace ./signpost --project project.feather.json command prefab.instantiate \ --json '{"id":1,"origin":[0,0,10]}' --save project.feather.jsonfeather-cli --workspace ./signpost --project project.feather.json command prefab.instantiate \ --json '{"id":1,"origin":[-10,0,10]}' --save project.feather.json
# Recolour the first copy's board (ID 6), then push the override into the prefab.feather-cli --workspace ./signpost --project project.feather.json command scene.update \ --json '{"id":6,"patch":{"color":[0.9,0.2,0.1]}}' --save project.feather.jsonfeather-cli --workspace ./signpost --project project.feather.json command prefab.apply \ --json '{"id":6}' --save project.feather.jsonCheck it worked:
feather-cli --workspace ./signpost --project project.feather.json command prefab.listfeather-cli --workspace ./signpost --project project.feather.json command scene.get --json '{"id":9}'prefab.list shows Signpost with "member_count": 3 and "instance_count": 2. The second copy’s
board, ID 9, has "color": [0.9, 0.2, 0.1]. Before you apply, prefab.instance_get with {"id":6}
lists the override as {"member": 3, "path": "color", …}; afterwards override_count is 0.
Share prefabs between projects
Section titled “Share prefabs between projects”| Action | Result |
|---|---|
| Export prefab… | Writes a portable .feather.prefab.json manifest with an assets/ folder containing only the GLBs it uses |
| Import prefab… | Adds a portable prefab to the library as one undoable template |
Keep the manifest and its assets/ folder together. Import deduplicates models that are already in
the project and renumbers conflicting asset IDs. Exported prefabs are self-contained: nested prefab
links are flattened. Older flat prefab files still import.
Removing a prefab from the library turns its linked instances into plain objects in the same undo step.
Limits
Section titled “Limits”| Limit | Value |
|---|---|
| Prefabs per project | 256 |
| Members per prefab | 128 |
| Parameters per prefab | 64 |
| Prefab description | 1,000 characters |
| Objects spawned by scripts and alive at once | 4,000 |
| Portable prefab manifest | 16 MiB |
Automate it
Section titled “Automate it”# Capture objects 2 and 3 as a prefab, then place a linked instance.feather-cli --workspace ./my-game --project project.feather.json command prefab.capture \ --json '{"ids":[2,3],"name":"Watchtower","origin":[0,0,0]}' --save project.feather.json
feather-cli --workspace ./my-game --project project.feather.json command prefab.instantiate \ --json '{"id":1,"origin":[20,0,10]}' --save project.feather.json
# Read an instance's overrides, then export the prefab for another project.feather-cli --workspace ./my-game --project project.feather.json command prefab.instance_get \ --json '{"id":4}'feather-cli --workspace ./my-game --project project.feather.json command prefab.export \ --json '{"id":1,"path":"shared/watchtower.feather.prefab.json"}'To edit a prefab and every linked instance at once, read its member_keys with prefab.get, then
patch members with prefab.update. A member patch takes the same fields as scene.update,
components included. This one gives member 1 a hover thruster, which pushes only Dynamic bodies; see
Physics:
feather-cli --workspace ./my-game --project project.feather.json command prefab.get --json '{"id":1}'feather-cli --workspace ./my-game --project project.feather.json command prefab.update --json '{ "id": 1, "members": [{"key": 1, "patch": {"thruster": {"force": 150, "direction": [0, 1, 0], "hover": 3.0}}}]}' --save project.feather.jsonThe response’s instances_updated counts the instances that changed.
Expose a parameter, set it on one placed instance, then make a variant with its own default:
feather-cli --workspace ./my-game --project project.feather.json command prefab.param_upsert --json '{ "id": 1, "value": {"id": "brightness", "label": "Brightness", "kind": "Number", "value": 1, "min": 0, "max": 5}}' --save project.feather.json
feather-cli --workspace ./my-game --project project.feather.json command prefab.instance_params \ --json '{"id":4,"values":{"brightness":3}}' --save project.feather.json
feather-cli --workspace ./my-game --project project.feather.json command prefab.variant \ --json '{"id":1,"name":"Bright lamp","params":{"brightness":2.5}}' --save project.feather.jsonprefab.instance_params returns the instance’s values (its own) and resolved (every parameter);
null or the default clears a value, and "reset": true clears them all first. prefab.param_upsert
merges into an existing parameter, and rename_from renames one while instance values follow.
prefab.param_remove removes a prefab’s own parameter. prefab.list, prefab.get and
prefab.instance_get include parameters, and prefab.update also takes a description. Related commands: prefab.apply, prefab.revert, prefab.unlink, prefab.import.
See the command reference.