# CustomGridBrushAttribute

> Attribute to define the class as a grid brush and to make it available in the palette window.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TilemapModule

## CustomGridBrushAttribute()

Attribute to define the class as a grid brush and to make it available in the palette window.

```csharp
public CustomGridBrushAttribute()
```

## CustomGridBrushAttribute(bool, bool, bool, string)

Attribute to define the class as a grid brush and to make it available in the palette window.

```csharp
public CustomGridBrushAttribute(bool hideAssetInstances, bool hideDefaultInstance, bool defaultBrush, string defaultName)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Hide the default instance of brush in the tile palette window.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If set to true, brush will replace Unity built-in brush as the default brush in palette window.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the default instance of this brush.
