Version: 2019.2
public int GetInt (string name);
public int GetInt (int nameID);

Parameters

nameIDThe name ID of the property retrieved by Shader.PropertyToID.
nameThe name of the property.

Description

Get an int from the property block.

Returns zero if not found.