Skip to content

Commit

Permalink
Part creation
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 committed Dec 15, 2023
1 parent 416ee8e commit df1763c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Writerside/topics/Selection-Block-Attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@ the selection block it is attached to.

| Ruleset | Argument names | Description of behaviour |
|--------------|-----------------------|-----------------------------------------------------------------------------------------------------|
| `:parts` | No arguments | Part creation is not possible yet in Patch Manager |
| `:parts` | `name` | Creates a new part asset of the name "name" |
| `:resources` | `name`, `[is_recipe]` | Creates a new resource with "name", this resource is a recipe if `is_recipe` is passed and is true. |
| `:json` | `label`, `name` | Creates a new generic json asset in Addressables with the label `label`, and name `name`. |

> Optional arguments are surrounded by `[]`
>
{style="note"}

> If you create a part without its prefab in Addressables, the game will crash.
>
{style="warning"}

Examples:

```
Expand Down

0 comments on commit df1763c

Please sign in to comment.