기술 자료

Unity Engine

Unity Engine

GetGlobalInt

This method is deprecated. Use Shader.GetGlobalFloat or Shader.GetGlobalInteger instead.
읽는 시간 1분최근 업데이트: 한 달 전

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.