ドキュメント

Unity Engine

Unity Engine

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

name

The name of the property.

value

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

nameID

The name ID of the property retrieved by Shader.PropertyToID.

value

Remarks

Internally float and integer shader properties are treated exactly the same, so this function is just an alias to Shader.SetGlobalFloat.