ドキュメント

Unity Engine

Download Unity

Unity Engine

GetInt

Gets the integer value of the bound named expression.
読み終わるまでの所要時間 1 分最終更新 24日前

Definition

GetInt(int)

Gets the integer value of the bound named expression.
public int GetInt(int nameID)

Parameters

nameID

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

Returns

Type

Description

intThe integer value of the bound named expression.

Remarks

Throws an ArgumentException if the entry isn't available or its type doesn't match.

GetInt(string)

Gets the integer value of the bound named expression.
public int GetInt(string name)

Parameters

name

The name of the property.

Returns

Type

Description

intThe integer value of the bound named expression.

Remarks

Throws an ArgumentException if the entry isn't available or its type doesn't match.