Skip to main content

Getting started with ZoneDraw

1. Create a shape​

In the Hierarchy, choose GameObject > LogicCuteGuy > ZoneDraw:

Menu itemResult
Barrier WallSolid walls along your points.
Trigger ZoneA trigger volume over the polygon.
Room (walls + ground + ceiling)A closed barrier with floor and ceiling.

Drawing mode starts right away. Later, use Draw / Edit Points in the Inspector.

2. Draw​

ActionControl
Add a pointClick
Move a pointDrag it
Change heightDrag the up arrow
Insert a pointClick a cyan dot
Remove a pointCtrl+Click, or select it and press Delete
FinishEsc or Enter

The Inspector also has Reverse, Drop To Ground, Flatten, Clear, Bake Colliders and Remove Colliders. Zones need at least 3 points.

3. Settings​

SettingMeaning
HeightHow far the shape extends above the points.
Bottom OffsetHow far it extends below them, to cover uneven ground.
ThicknessThickness of walls, floor and ceiling.
Wall FacesWhich side of the line the wall thickness is on: Front, Back or both.
ClosedBarrier only: connect the last point to the first. Floor and ceiling need this.
Ground / Ceiling ColliderAdd floor or ceiling slabs.
Is Trigger, Physic MaterialApplied to the baked colliders.
Render MaterialOptional visible mesh.
Scripting RefAdd a ZoneArea for Udon scripts.
Snap To Surface, Grid SnapControl where new points land.
Auto BakeRebake while you edit.

The colliders are children of a _ZoneColliders object and use the shape's layer. Don't edit them by hand, because the next bake replaces them. A concave polygon uses one convex collider per triangle, so keep complex shapes simple.

4. Next steps​