SetTexture
Sets the value of a named texture property.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.VFX
- Assembly: UnityEngine.VFXModule
SetTexture(int, Texture)
Sets the value of a named texture property.
public void SetTexture(int nameID, Texture t)
Parameters
Remarks
Automatically changes overridden state for this property to true. If the provided texture dimension doesn't correspond to the expected dimension, this function can log an error. If that happens, this assignment is ignored.
SetTexture(string, Texture)
Sets the value of a named texture property.
public void SetTexture(string name, Texture t)
Parameters
Remarks
Automatically changes overridden state for this property to true. If the provided texture dimension doesn't correspond to the expected dimension, this function can log an error. If that happens, this assignment is ignored.