SetGlobalInt
This method is deprecated. Use Shader.SetGlobalFloat or Shader.SetGlobalInteger instead.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetGlobalInt(string, int)
This method is deprecated. Use Shader.SetGlobalFloat or Shader.SetGlobalInteger instead.
public static void SetGlobalInt(string name, int value)
Parameters
Remarks
Internally float and integer shader properties are treated exactly the same, so this function is just an alias to Shader.SetGlobalFloat.
SetGlobalInt(int, int)
This method is deprecated. Use Shader.SetGlobalFloat or Shader.SetGlobalInteger instead.
public static void SetGlobalInt(int nameID, int value)
Parameters
Remarks
Internally float and integer shader properties are treated exactly the same, so this function is just an alias to Shader.SetGlobalFloat.