# CreatePlacemat

> Creates and initializes a new placemat in this PlacematContainer.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Experimental.GraphView](/engine/6000.3/script-reference/unityeditor/experimental/graphview.md)
* **Assembly:** UnityEditor

## CreatePlacemat\<T>(Rect, int, string)

Creates and initializes a new placemat in this PlacematContainer.

```csharp
public T CreatePlacemat<T>(Rect placematPosition, int zOrder, string placematTitle) where T : Placemat, new()
```

### Parameters

**** (\[Rect]\(/engine/6000.3/script-reference/unityengine/rect)): The position of the new placemat.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The title of the new placemat.

### Returns

| Type | Description                   |
| ---- | ----------------------------- |
| T    | Returns the created placemat. |

## CreatePlacemat\<T>(Func\<T>, Rect, int, string)

Creates and initializes a new placemat in this PlacematContainer.

```csharp
public T CreatePlacemat<T>(Func<T> creator, Rect placematPosition, int zOrder, string placematTitle) where T : Placemat
```

### Parameters

**** (\[Func\<T>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): A function that creates a new placemat of type T.**** (\[Rect]\(/engine/6000.3/script-reference/unityengine/rect)): The position of the new placemat.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The title of the new placemat.

### Returns

| Type | Description                   |
| ---- | ----------------------------- |
| T    | Returns the created placemat. |
