prefab

Makes this object a copy of a prefab: a saved object in Prefabs/.ttrprefab (its first entity the object, any more its parts). Edit the prefab and every copy changes; this copy keeps its own version of the components in `keep` (an edit made to the copy adds it there). Where it stands, its name and group are always its own. Tools: prefab_make, prefab_place, prefab_apply, prefab_revert, prefab_refresh; scripts: world.spawnPrefab("Crate", position).

In scene text

prefab { source "…"  keep ["a", "b"] }

Add it in the Inspector (Add Component), in scene text as above, or ask your AI. Fields you leave out keep their defaults.

Fields 2

FieldTypeUnit / rangeWhat it does
sourcetext—The prefab file in Assets: "Prefabs/Crate.ttrprefab".
keeplist of text—Components this copy keeps as its own (e.g. ["mesh_renderer"]): the prefab's version of those is not used.
Arcwright Beta 2 (0.4.0) · generated from the engine source (25e375c86)Something wrong or missing? Tell us
Download Arcwright free