---
title: "Fence Builder - s&box library"
description: "Fence Builder\n\nFence Builder is a s&box editor library for placing fence pieces from reusable Fence Definition assets.\n\nSetup\n\n1. Install the library in your project.\n2. In the Asset Browser, create a `Fence Definition` asset.\n3. Add one or more entries. Each entry can use a `Model` or a `Prefab`; prefabs take priority.\n4. Set `RotationOffset` so the segment's forward direction matches how it should run along the fence.\n\nUse\n\n1. Open a scene and activate the `Fence` tool, or press `Ctrl+Shift+B`.\n2. Assign your `Fence Definition` in the tool sidebar.\n3. Use `Mode = Line` for a straight run: click once to set the start, click again to place.\n4. Use `Mode = Spline` for a curved run: hold left mouse, draw on a surface, then release to place.\n5. Press `Escape` to cancel the current run.\n\n- If you've placed an object/a lot of objects that the navmesh ignores/nav mesh agents walk through, I have added an ability to apply a nav-mesh blocker to them, it creates a new component inside the fence game object called nav mesh - area, the size of the fence/game object's collider that blocks the navmesh's creation around it. That is also present as a setting inside the fencedef files\n\nFence Builder measures each segment's bounds and advances placement by the measured length, so authored pieces line up without needing a fixed segment size."
canonical: "https://sbox.watch/libraries/junglehamgames/fence-builder/"
generated_at: "2026-07-23T00:23:23.820Z"
---

# Fence Builder

No summary provided.

- Type: library
- Ident: junglehamgames.fence-builder
- Creator: junglehamgames
- Canonical: https://sbox.watch/libraries/junglehamgames/fence-builder/
- Markdown: https://sbox.watch/libraries/junglehamgames/fence-builder.md
- sbox.game: https://sbox.game/junglehamgames/fence-builder/
- Generated: 2026-07-23T00:23:23.820Z

## Stats

- 24h momentum: +0
- Terry score: --
- Favorites: 0
- Upvotes: 0
- Downvotes: 0
- Updated: May 9, 2026
- Created: May 5, 2026
- Size: 75.0 KB
- Files: 14
- Tags: tool

## Description

Fence Builder

Fence Builder is a s&box editor library for placing fence pieces from reusable Fence Definition assets.

Setup

1. Install the library in your project.
2. In the Asset Browser, create a \`Fence Definition\` asset.
3. Add one or more entries. Each entry can use a \`Model\` or a \`Prefab\`; prefabs take priority.
4. Set \`RotationOffset\` so the segment's forward direction matches how it should run along the fence.

Use

1. Open a scene and activate the \`Fence\` tool, or press \`Ctrl+Shift+B\`.
2. Assign your \`Fence Definition\` in the tool sidebar.
3. Use \`Mode = Line\` for a straight run: click once to set the start, click again to place.
4. Use \`Mode = Spline\` for a curved run: hold left mouse, draw on a surface, then release to place.
5. Press \`Escape\` to cancel the current run.

- If you've placed an object/a lot of objects that the navmesh ignores/nav mesh agents walk through, I have added an ability to apply a nav-mesh blocker to them, it creates a new component inside the fence game object called nav mesh - area, the size of the fence/game object's collider that blocks the navmesh's creation around it. That is also present as a setting inside the fencedef files

Fence Builder measures each segment's bounds and advances placement by the measured length, so authored pieces line up without needing a fixed segment size.


