A lightweight editor tool for snapping modular objects together via SnappingPoints.
The Snapping Tool helps align modular objects in the Unity SceneView by snapping compatible points together with visual feedback.
- Toggle tool with
Skey. - Drag SnappingPoints to nearby compatible points.
- Bezier lines show possible snap targets (white = near, green = snap-ready).
- Release LMB to snap and align automatically.
-
- Attach
SnappingObjectto your modular prefab or GameObject. - Add one or more
SnappingPointchildren. - Set each point’s:
- SnapType:
Plug,Slot, orNone - GroupId: to match compatible types
- Parent: assigned automatically (used to prevent self-snapping)
- SnapType:
- Attach
-
Activate Tool
- Select a
SnappingObjectin the scene. - Press
Sto toggle the Snapping Tool. - If no object is selected, pressing
Srestores your previous tool.
- Select a
-
Use
- Drag a
Plugpoint in SceneView. - Hover near a compatible
Slot(white line = search range, green line = snap range). - Release mouse to snap and align the objects.
- Drag a
A Plug point will snap to a Slot when:
- They have the same GroupId.
- They belong to different parents.
- The target point’s SnapType is not
Plug.
| Constant | Default | Description |
|---|---|---|
RADIUS_SNAP |
0.3 | Snap threshold |
RADIUS_SEARCH |
1.0 | Search radius |
SNAP_TANGENT_LENGTH |
1.0 | Bezier curve tangent scale |
- Only Plugs can be dragged to snap.
- Keep
GroupIds consistent between matching parts. - Make sure your project includes
Transform.GetMatrix/SetMatrix(ignoreScale: true)helpers.
Shortcut: S
Namespace: OC.Editor
Tool Name: Snapping
Icon: d_Cubemap Icon

