Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetGlobalInt

This method is deprecated. Use Shader.GetGlobalFloat or Shader.GetGlobalInteger instead.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

GetGlobalInt(string)

This method is deprecated. Use Shader.GetGlobalFloat or Shader.GetGlobalInteger instead.
public static int GetGlobalInt(string name)

Parameters

name

The name of the property.

Returns

Type

Description

int

Remarks

Calling this method is equivalent to calling Shader.GetGlobalFloat and casting the returned value to integer. Additional Resources: Shader.GetGlobalFloat, Shader.GetGlobalInteger.

GetGlobalInt(int)

This method is deprecated. Use Shader.GetGlobalFloat or Shader.GetGlobalInteger instead.
public static int GetGlobalInt(int nameID)

Parameters

nameID

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

Returns

Type

Description

int

Remarks

Calling this method is equivalent to calling Shader.GetGlobalFloat and casting the returned value to integer. Additional Resources: Shader.GetGlobalFloat, Shader.GetGlobalInteger.