SetGraphicsBuffer
Sets the value of a named GraphicsBuffer property.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.VFX
- Assembly: UnityEngine.VFXModule
SetGraphicsBuffer(int, GraphicsBuffer)
Sets the value of a named GraphicsBuffer property.
public void SetGraphicsBuffer(int nameID, GraphicsBuffer g)
Parameters
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
Remarks
Unity does not serialize this reference because GraphicsBuffer isn't a Object.