Version: 2022.3

VisualEffect.SetGraphicsBuffer

切换到手册
public void SetGraphicsBuffer (int nameID, GraphicsBuffer g);
public void SetGraphicsBuffer (string name, GraphicsBuffer g);

参数

nameID 属性的 ID。这与 Shader.PropertyToID 返回的 ID 相同。
name 属性的名称。
g The new GraphicsBuffer value.

描述

Sets the value of a named GraphicsBuffer property.

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