🖌️
Prefab Brush Documentation
  • 🌟Introduction
    • Prefab Brush On Asset Store
    • Features
    • The PrefabBrushObject Component
    • Limitations
  • 🚀Quick Start
    • Opening Prefab Brush
    • Adding Prefabs To Your List
    • Painting Prefabs
      • Multiple Mode
      • Precision Mode
      • Using Physics
        • Adding Object Impulse
    • Erasing Prefabs
      • Erasing with Physics
  • 🎓Detailed Guide
    • Raycast Mode
    • Parenting Objects
    • Placement Settings
    • Transforms Settings
      • Scene Camera Rotation Mode
    • Custom Prefabs Properties
    • Advanced Options
    • Working With Terrains
    • Pressure Pen
    • Scrollwheel Shortcuts
    • Custom Pivots, Attractors & Snapp
    • Vertex Snapping
    • Free Rotation Mode
  • 🆘Suport
    • Support
  • ❤️Tool You Will Love!
Powered by GitBook
On this page
  • Video Tutorial
  • Adding Custom Pivots
  • Changing Between Pivots
  • Attractors
  1. Detailed Guide

Custom Pivots, Attractors & Snapp

Placing objects has never been easier with the addition of custom pivots.

PreviousScrollwheel ShortcutsNextVertex Snapping

Last updated 5 months ago

Video Tutorial

Here is a quick video explaining how pivots and attractors work:

Placing objects has never been easier with the addition of custom pivots. You can now set custom pivot points for your objects, allowing for precise modular placement. To add a custom pivot:

Adding Custom Pivots

  1. Open your Prefab in Prefab Mode.

  2. Right-click the root object.

  3. Select Prefab Brush > Pivot & Attractors > Add Pivot.

  4. Optional: add the attractors names the pivot gonna be attracted to

You can have as many custom pivots you want, to change between them just use the next and previous button in the tool

Changing Between Pivots

You can have as many custom pivots as you want, to change between them just use the next and previous button in the tool

You can also use the keyboard shortcuts while placing your objects

Q -> Preivous Pivot

E -> Next Pivot

Attractors

Attractors are a new component designed to streamline the use of modular assets, such as walls, fences, and ground pieces. Here's how they work:

  • Attractors are components that attract custom pivots on your objects.

  • Each attractor has a unique name.

  • Custom pivots have an array called AttractedBy.

  • If the attractor’s name is in the pivot’s AttractedBy array, the pivot aligns with the attractor’s position when using the Prefab Brush.

Adding Attractors

  1. Open your Prefab in Prefab Mode

  2. Right-click the root object.

  3. Select Prefab Brush > Pivot & Attractors > Create Attractor.

  4. Change the attractors name in the inspector

Note: Attractors only interact with pivots.

Pro Tip:

When creating attractors and pivots, use the V key to align the object’s transform with any mesh vertex for accurate positioning.

If you are using the Mesh Raycast mode, remember to check the "Add Painted to Raycast Mesh" toggle, as in the image below.

Attention: Pivots and attractors currently only function in Precision Mode. Support for using pivots in Multiple Mode is under development and will be available in a future update.

🎓
How custom pivots and attractors works
Right click the game object root
You can have multiple custom pivots
Attractos allow snaping