🖌️Object Brush

Object Brush is a tool that lets you paint prefabs on surfaces. This tool can be used painting environments, general objects or anything else you can imagine. A great tool to have in your arsenal!

To get started using Object Brush Tool we need to create a holder for our particles.

We refer to a particle as one prefab/object that is spawned at a point we paint.

  1. Create a GameObject in the hierarchy.

  2. Attach the Object Brush Tool script as a new component.

Update Mode

This handles when the objects we paint should update and recalculate everything. It is very important you understand when you can use each of the Update Modes to avoid any freezing when painting later on

1

Update Mode Auto

Updates whenever you change any of the properties in the inspector. Use this carefully.

2

Update Mode Manual

Updates only when painting. When changing properties in the inspector, you will have to press the Update button visible when this setting is enabled to update the painter. You can also update it by pressing [LEFT-CONTROL] on your keyboard.

More information about keybindings are available in the same inspector window as the Tool itself.

Painting Prefabs using the Object Brush

Follows is an example workflow of painting prefabs using the tool.

1

Add the Object Brush Tool to a GameObject

2

Change to Auto Update Mode for Faster Feedback

3

Assign the Prefabs you want to Paint

In inspector, add a new Object under Objects and assign your prefab here.

You can add multiple objects and it will choose randomly between them (by their weight).

Set the Size and Rotation.

4

Use Keybindings to Setup Brush

Changing Brush Size: Hold [CTRL] + Drag [LMB]

Changing Brush Strength: Hold [CTRL] + Drag [RMB]

5

Start Painting on Any Surface

Paint: Hold [SHIFT] + [LMB]

Erase: Hold [SHIFT] + [RMB]

6

Now we have our newly painted prefabs

Last updated