Documentation

Unity Engine

Download Unity

Unity Engine

GetInt

Gets the integer value of the bound named expression.
Read time 1 minuteLast updated 17 days ago

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.