Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetGraphicsBuffer

Sets the value of a named GraphicsBuffer property.
Read time 1 minuteLast updated 5 days ago

Definition

SetGraphicsBuffer(int, GraphicsBuffer)

Sets the value of a named GraphicsBuffer property.
public void SetGraphicsBuffer(int nameID, GraphicsBuffer g)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

The new GraphicsBuffer value.

Remarks

Unity does not serialize this reference because GraphicsBuffer isn't a Object.

SetGraphicsBuffer(string, GraphicsBuffer)

Sets the value of a named GraphicsBuffer property.
public void SetGraphicsBuffer(string name, GraphicsBuffer g)

Parameters

name

The name of the property.

The new GraphicsBuffer value.

Remarks

Unity does not serialize this reference because GraphicsBuffer isn't a Object.