Prefab Brush Pro - How to Use Guide
Welcome to Prefab Brush Pro, a powerful Unity Editor tool for efficient prefab placement and level design. This guide will walk you through all features and help you master the tool quickly.
Key Features
PrefabBrush revolutionizes level design in Unity with its comprehensive set of painting tools and intelligent placement systems. Here's what makes it essential for game developers:
8 Specialized Brush Modes
From precise single placement to organic spray patterns, curved paths, and geometric stamps - every placement need is covered.
- Spray Brush - Natural, organic placement
- Line & Curve Brushes - Perfect paths and borders
- Circle & Square Stamps - Geometric formations
- Erase & Move Tools - Complete editing control
Advanced Randomization
Create natural, varied environments with sophisticated randomization controls that eliminate repetitive patterns.
- Scale Variation - Random size adjustments
- Rotation Control - Custom rotation ranges
- Height Offset - Vertical positioning variety
- Slope Filtering - Terrain-aware placement
Intelligent Placement
Smart algorithms ensure optimal object distribution with collision detection and surface conforming.
- Surface Alignment - Automatic normal alignment
- Collision Avoidance - Prevents overlapping
- Layer-based Targeting - Precise surface selection
- Distance Control - Consistent spacing
Professional Workflow
Streamlined tools designed for professional game development with preset management and batch operations.
- Settings Presets - Save and switch configurations
- Multi-Prefab Support - Paint with multiple objects
- Undo/Redo Support - Full Unity integration
- Preview Modes - See before you place
Versatile Use Cases
Perfect for any project scale - from indie games to AAA productions, covering all environment needs.
- Landscape Design - Trees, rocks, vegetation
- Architecture - Buildings, props, furniture
- Level Decoration - Details and atmosphere
- Prototyping - Rapid level iteration
Intuitive Controls
Familiar, artist-friendly interface with keyboard shortcuts and customizable hotkeys for maximum efficiency.
- Mouse-driven - Natural painting workflow
- Keyboard Shortcuts - Speed up common tasks
- Visual Feedback - Clear brush radius indicators
- Scene Integration - Works in Unity Scene view
Ready to Transform Your Level Design?
PrefabBrush reduces level creation time by up to 80% while maintaining artistic control. Whether you're building vast open worlds or detailed interior spaces, this tool scales with your project needs.
Getting Started
Opening the Tool
- In Unity, go to Tools > Peykarimeh > Prefab Brush
- The Prefab Brush Pro window will open - dock it wherever convenient in your workspace
Initial Setup
Before you start painting, you need to:
- Create or Select Settings: Choose a settings preset from the dropdown at the top
- Add Prefabs: Drag prefabs from your Project window into the prefab list
- Set Parent Object: Assign a Transform as the parent for all placed objects
- Configure Ground Layer: Set which layer(s) the tool should paint on

Brush Modes
Prefab Brush Pro offers 8 distinct brush modes, each designed for specific placement needs:
Spray Brush
Perfect for organic, natural placement like grass, flowers, or debris
- How to Use: Click and drag to continuously paint prefabs
- Best For: Vegetation, particles, scattered objects
- Controls:
- Click + Drag: Paint continuously
- Ctrl + Scroll: Adjust amount per spray
- Shift + Scroll: Change brush radius

Single Brush
Precise placement of individual objects
- How to Use: Click to place exactly one prefab at cursor position
- Best For: Buildings, furniture, key objects
- Controls:
- Click: Place single object
- Scroll: Scale preview object
- Drag: Rotate preview object
- Ctrl + Drag: Snap rotation to 15° intervals

Circle Stamp
Place multiple objects in a circular pattern
- How to Use: Click to stamp prefabs in a circular area
- Best For: Flower beds, stone circles, campfires
- Controls:
- Click: Stamp objects in circle
- Ctrl + Scroll: Change amount of objects
- Shift + Scroll: Adjust circle radius

Square Stamp
Place objects in a square/grid formation
- How to Use: Click to stamp prefabs in a square area
- Best For: Building layouts, grid-based placement, organized structures
- Controls: Same as Circle Stamp but creates square patterns

Line Brush
Create perfect lines of objects with advanced placement modes
- How to Use:
- Click to set start point
- Click again to set end point and place objects along the line
- Best For: Fences, walls, paths, borders
- Brush Modes:
- Single Mode: Places objects directly on the line with automatic or manual spacing
- Spread Mode: Creates clusters of objects around each line point using Amount, Min Distance, and Radius
- Controls:
- Ctrl + Scroll: Adjust Point Spacing (Single Mode) or Amount (Spread Mode)
- Shift + Scroll: Adjust Radius (Spread Mode only)
- ESC: Cancel line drawing

Curve Brush
Create flowing, curved arrangements with advanced curve control
- How to Use:
- Click to add control points (minimum 3 points)
- Right-click or press Enter to finalize and place objects
- Best For: Winding paths, organic borders, decorative curves
- Brush Modes:
- Single Mode: Places objects directly on the curve with spacing control
- Spread Mode: Creates clusters of objects around each curve point
- Curve Settings:
- Distance Spacing: Objects placed based on distance intervals
- Count Spacing: Fixed number of objects distributed evenly
- Curve Tension: Controls how curvy the spline appears
- Special Controls:
- T: Toggle spacing mode
- +/-: Adjust curve tension
- Enter: Finalize curve
- Right-click: Finalize curve
- Ctrl + Scroll: Adjust Point Spacing (Single Mode) or Amount (Spread Mode)
- Shift + Scroll: Adjust Radius (Spread Mode only)

Erase Brush
Remove placed objects
- How to Use: Click and drag to remove prefabs within brush radius
- Best For: Cleaning up, making clearings, fine-tuning placement
- Controls:
- Click + Drag: Remove objects in radius
- Shift + Scroll: Adjust erase radius

Move Brush
Relocate existing objects
- How to Use: Click and drag to move placed prefabs
- Best For: Adjusting placement, repositioning objects
- Controls:
- Click + Drag: Move objects within radius
- Shift + Scroll: Adjust move radius

Core Settings
Basic Parameters
Amount
Number of objects to place per brush stroke
- Spray: Objects per spray burst
- Stamps: Total objects in stamp pattern
- Line/Curve (Spread Mode): Objects per line/curve point
- Line/Curve (Single Mode): Fixed at 1 object per placement point
Radius
Size of the brush area
- Controls spread area for most brushes
- Line/Curve (Spread Mode): Spread area around each point
- Line/Curve (Single Mode): Not used (precise placement)
- Affects erase/move area for utility brushes
Min Distance
Minimum spacing between placed objects
- Prevents objects from overlapping
- Higher values = more spread out placement
- Used in Spread Mode for Line/Curve brushes
Point Spacing
Distance between placement points (Line/Curve brushes)
- Auto Spacing: Automatically calculated based on prefab size
- Manual Spacing: Set exact distance between points
- Only applies in Single Mode
Placement Settings
Parent Object
Transform that will contain all placed objects
- Keeps your scene organized
- Easy to select/move/delete groups of objects
- ⚠️ Required - tool will warn if not set
Parenting Mode
- Static Parent: Uses manually assigned parent object
- Hit Object Parent: Auto-parents to the object you paint on
Ground Layer
Which layer(s) to paint on
- Set to specific terrain/ground layers
- Or use "All Colliders" mode to paint on any surface
Randomization & Variation
Rotation Options
Align to Surface Normal
- ON: Objects tilt to match surface angle (rocks on slopes)
- OFF: Objects stay upright (trees, buildings)
Random Rotation
- Toggle: Enable/disable random Y-axis rotation
- Range: Set min/max rotation angles (0-360°)
- Great for natural variation
Scale Variation
Random Scale
- Toggle: Enable scale randomization
- Range: Set min/max scale multipliers (0.1x to 5x)
- Creates size variety for organic looks
Height Control
Height Offset
Fixed vertical offset for all objects
Random Height
- Toggle: Enable random height variation
- Range: Set min/max height offset values
- Perfect for uneven terrain adaptation
Slope Filtering
Slope Filter
- Toggle: Enable slope-based placement restrictions
- Range: Set valid slope angles (0-90 degrees)
- Prevents placing objects on too-steep surfaces
Advanced Features
Preview Modes
Live Preview
See actual prefab meshes during placement
- More accurate but potentially slower
- Great for precise positioning
Simple Preview
Show colored spheres with labels
- Faster performance
- Good for general layout work
Surface Modes
Top-Down Mode
- Rays cast straight down from above
- Best for terrain/landscape work
- Objects placed on surface tops
Surface-Aware Mode
- Rays cast along surface normals
- Better for complex geometry
- Objects follow surface contours
Line & Curve Brush Modes
Line and Curve brushes feature two distinct placement modes:
Single Mode
(Default)
- Places objects directly along the line/curve path
- Uses Auto Spacing or Manual Point Spacing
- Auto Spacing: Automatically calculates spacing based on selected prefab size
- Manual Spacing: Set exact distance between placement points
- Objects placed precisely on the path with no spreading
Spread Mode
- Creates clusters of objects around line/curve points
- Uses Amount (objects per point), Min Distance, and Radius
- Each line/curve point becomes a center for multiple object placement
- Great for creating thick borders or dense arrangements
Direction Alignment
Align with Direction
Available for Line and Curve brushes
- Objects rotate to align with the line/curve direction
- Works with both world-up and surface normal alignment
- Perfect for fence posts, walls, or directional objects
Multi-Selection
You can select multiple prefabs for varied placement:
- Ctrl + Click: Add/remove prefabs from selection
- Weight System: Assign different spawn probabilities
- Mixed Placement: Tool randomly chooses from selected prefabs
Keyboard Shortcuts
Universal Controls
Brush-Specific Shortcuts
Single Brush
Line Brush
Curve Brush
Workflow Tips
Creating Natural Environments
- Start with Terrain: Use Spray Brush for base vegetation
- Add Clusters: Use Circle/Square Stamps for grouped objects
- Create Paths: Use Line or Curve Brush for trails
- Fine-tune: Use Move Brush to adjust positioning
- Clean up: Use Erase Brush to create clearings
Building Structured Layouts
- Plan with Single: Place key structures first
- Fill with Stamps: Use Square Stamp for grid layouts
- Connect with Lines:
- Single Mode: Perfect straight walls, fences with auto-spacing
- Spread Mode: Dense hedgerows or thick barriers
- Add Details: Spray Brush for small decorative elements
Performance Optimization
- Use Simple Preview for large-scale work
- Enable Slope Filtering to avoid invalid placements
- Set appropriate Min Distance to prevent overcrowding
- Group similar objects under organized parent objects
Artistic Variation
- Enable Random Rotation for natural looks
- Use Random Scale for organic variety
- Mix multiple prefabs with different weights
- Combine Random Height with terrain adaptation
Settings Management
Creating Presets
- Configure your brush settings
- Click "Create New Settings"
- Name your preset (e.g., "Forest Trees", "Stone Walls")
- Settings are saved as ScriptableObjects in your project
Switching Presets
- Use the dropdown at the top of the tool
- Instantly switch between different workflows
- Each preset remembers all settings and prefab lists
Best Practices
- Create separate presets for different object types
- Name presets clearly ("Environment_Trees", "Props_Rocks")
- Share preset files with your team for consistency
Common Use Cases
Landscape Design
- Trees: Spray Brush + Random Scale + Random Rotation
- Rocks: Circle Stamp + Slope Filtering + Height Variation
- Grass Clumps: Spray Brush + Small Min Distance
- Paths: Line/Curve Brush with path prefabs
Architecture & Props
- Building Placement: Single Brush for precision
- Fence Lines: Line Brush (Single Mode) with Direction Alignment enabled
- Wall Segments: Line Brush (Spread Mode) for thick walls
- Decorative Items: Square Stamp for organized layouts
- Random Props: Spray Brush with multiple prefab selection
Game Level Creation
- Collectibles: Circle Stamp for power-up clusters
- Obstacles: Line Brush for barrier placement
- Environmental Storytelling: Mix of all brushes for detailed scenes
Troubleshooting
Objects Not Placing
- ✅ Check that Edit Mode is enabled
- ✅ Verify Parent Object is assigned
- ✅ Ensure prefabs are added to the list
- ✅ Check Ground Layer settings match your terrain
- ✅ Verify slope settings aren't too restrictive
- ✅ For Line/Curve brushes, check brush mode matches your needs
Auto Spacing Issues
- 🔧 If spacing seems too large/small, switch to Manual Point Spacing
- 🔧 Auto Spacing is based on largest selected prefab dimension
- 🔧 For mixed prefab sizes, consider using Manual Spacing
Performance Issues
- 🔧 Switch to Simple Preview mode
- 🔧 Reduce brush radius for complex scenes
- 🔧 Lower amount values for heavy prefabs
- 🔧 Use appropriate Min Distance values
Preview Not Showing
- 🔧 Make sure you're hovering over valid surfaces
- 🔧 Check that your ground layer is set correctly
- 🔧 Verify slope filtering isn't blocking placement
- 🔧 Ensure prefabs are properly assigned
Objects Appearing in Wrong Places
- 🔧 Check Top-Down Mode vs Surface-Aware Mode settings
- 🔧 Verify Normal Alignment settings
- 🔧 Adjust Height Offset if objects are floating/buried
You're Ready to Create!
Prefab Brush Pro is designed to speed up your level design workflow while maintaining creative control. Start with simple brush modes and gradually explore the advanced features as you become comfortable with the tool.
Happy Painting!
For technical support or feature requests, please refer to the project documentation or contact the developer.