# Create(PlayableGraph, Material, int)

> Creates a MaterialEffectPlayable in the PlayableGraph.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Experimental.Playables](/engine/6000.7/script-reference/unityengine/experimental/playables.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static MaterialEffectPlayable Create(PlayableGraph graph, Material material, int pass = -1)
```

### Parameters

**** (\[PlayableGraph]\(/engine/6000.7/script-reference/unityengine/playables/playablegraph)): The [PlayableGraph](/engine/6000.7/script-reference/unityengine/playables/playablegraph.md) object that will own the [MaterialEffectPlayable](/engine/6000.7/script-reference/unityengine/experimental/playables/materialeffectplayable.md).**** (\[Material]\(/engine/6000.7/script-reference/unityengine/material)): [Material](/engine/6000.7/script-reference/unityengine/material.md) used to modify linked texture playable inputs.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Shader pass index.(Note: -1 for all passes).

### Returns

| Type                                                                                                                   | Description                                                                                                                                                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [MaterialEffectPlayable](/engine/6000.7/script-reference/unityengine/experimental/playables/materialeffectplayable.md) | A [MaterialEffectPlayable](/engine/6000.7/script-reference/unityengine/experimental/playables/materialeffectplayable.md) linked to the [PlayableGraph](/engine/6000.7/script-reference/unityengine/playables/playablegraph.md). |

### Remarks

NOTE: Each MaterialEffectPlayable input is connected to the selected Material’s texture properties (ie. texture input 0 is connected to the Material’s first texture property, texture input 1 to the second texture property, etc.)
