2d-extras icon indicating copy to clipboard operation
2d-extras copied to clipboard

Can't create prefab brush in create asset menu

Open TimoVanDenBoom opened this issue 4 years ago • 9 comments

Hi,

I can't seem to figure out how to create a prefab brush. If I try to create one via the create asset menu, the prefab brush option is nowhere to be found. How do I fix this?

TimoVanDenBoom avatar May 31 '20 13:05 TimoVanDenBoom

Hi, when you have created a Prefab Brush from the Create Asset menu and renamed it to a suitable name, you can find it in the Brushes dropdown in the Tile Palette window:

image

My badly named Prefab brush (New Prefab Brush) is shown in the dropdown menu. This dropdown menu will list your brush however you have named it. If you extend the menu by dragging the toolbar next to the dropdown menu, you will get the properties of the Prefab Brush which you can change.

Hope this helps!

ChuanXin-Unity avatar Jun 01 '20 04:06 ChuanXin-Unity

Thanks for the reply. I know where to find the brushes, I just don't know how to create a prefab brush. Could you show me how you did it?

TimoVanDenBoom avatar Jun 01 '20 05:06 TimoVanDenBoom

From the Project Window, if this package is installed, you should be able to see the menu after right-clicking:

image

This is also available under the "Assets/Create" menu. When activated, you will need to specify a location to store your new Prefab Brush asset.

ChuanXin-Unity avatar Jun 01 '20 06:06 ChuanXin-Unity

Thanks a lot, I'll check it later today.

TimoVanDenBoom avatar Jun 01 '20 06:06 TimoVanDenBoom

I don't have that menu. I've installed the package but I still don't get a Prefab Brush option. image

BradFitz66 avatar Jul 25 '20 15:07 BradFitz66

I'm having the same problem of BradBath. It only shows the random brush but i can't find the prefab brush

gusvicuna avatar Jul 26 '20 23:07 gusvicuna

Hi @BradBath @gusvicuna , sorry, I updated the master branch to fix this issue. You may need to remove the "com.unity.2d.tilemap.extras" entry in "Packages/packages-lock.json" in your project (or delete that file).

Also, do note that the master branch is now targeted for usage with Unity 2020.1! Please use https://github.com/Unity-Technologies/2d-extras/releases/tag/1.5.0-preview for Unity 2019.4.

ChuanXin-Unity avatar Jul 27 '20 01:07 ChuanXin-Unity

I'm having the same problem but worse, 2D doesn't even give me a brush option.

Lidwin-Gasca avatar Mar 19 '22 17:03 Lidwin-Gasca

@Lidwin-Gasca Hi, could you share how you added the 2D Tilemap Extras to your project? The PrefabBrush is only available if you added the 2D Tilemap Extras from this GitHub repository, and not through the Unity Package Manager in the Editor.

ChuanXin-Unity avatar Mar 21 '22 04:03 ChuanXin-Unity