# GraphicsStateCollection

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

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.Rendering](/engine/6000.7/script-reference/unityengine/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.

**Note**: On the Web platform, you can’t load a GraphicsStateCollection from a file because the platform doesn’t support it.

Additional Resources: [GraphicsStateCollection.LoadFromFile](/engine/6000.7/script-reference/unityengine/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.

**Note**: On the Web platform, you can’t load a GraphicsStateCollection from a file because the platform doesn’t support it.

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