# SetGraphicsBuffer

> Sets the value of a named GraphicsBuffer property.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.VFX](/engine/6000.5/script-reference/unityengine/vfx.md)
* **Assembly:** UnityEngine.VFXModule

## SetGraphicsBuffer(int, GraphicsBuffer)

Sets the value of a named GraphicsBuffer property.

```csharp
public void SetGraphicsBuffer(int nameID, GraphicsBuffer g)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The ID of the property. This is the same ID that [Shader.PropertyToID](/engine/6000.5/script-reference/unityengine/shader/propertytoid.md) returns.**** (\[GraphicsBuffer]\(/engine/6000.5/script-reference/unityengine/graphicsbuffer)): The new GraphicsBuffer value.

### Remarks

Unity does not serialize this reference because GraphicsBuffer isn't a [Object](/engine/6000.5/script-reference/unityengine/object.md).

## SetGraphicsBuffer(string, GraphicsBuffer)

Sets the value of a named GraphicsBuffer property.

```csharp
public void SetGraphicsBuffer(string name, GraphicsBuffer g)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property.**** (\[GraphicsBuffer]\(/engine/6000.5/script-reference/unityengine/graphicsbuffer)): The new GraphicsBuffer value.

### Remarks

Unity does not serialize this reference because GraphicsBuffer isn't a [Object](/engine/6000.5/script-reference/unityengine/object.md).
