# GraphicsStateCollection

> Create a GraphicsStateCollection populated with contents of a file, or empty.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.Experimental.Rendering](/engine/6000.3/script-reference/unityengine/experimental/rendering.md)
* **Assembly:** UnityEngine.CoreModule

## GraphicsStateCollection()

Create a GraphicsStateCollection populated with contents of a file, or empty.

```csharp
public GraphicsStateCollection()
```

### Remarks

The file extension of GraphicsStateCollection is \*.graphicsstate.

Additional Resources: [GraphicsStateCollection.LoadFromFile](/engine/6000.3/script-reference/unityengine/experimental/rendering/graphicsstatecollection/loadfromfile.md).

## GraphicsStateCollection(string)

Create a GraphicsStateCollection populated with contents of a file, or empty.

```csharp
public GraphicsStateCollection(string filePath)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Path to GraphicsStateCollection serialized file.

### Remarks

The file extension of GraphicsStateCollection is \*.graphicsstate.

Additional Resources: [GraphicsStateCollection.LoadFromFile](/engine/6000.3/script-reference/unityengine/experimental/rendering/graphicsstatecollection/loadfromfile.md).
