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

参数

nameID 通过 Shader.PropertyToID 检索的属性的名称 ID。
name 属性的名称。

描述

This method is deprecated. Use GetFloat or GetInteger instead.

如果未找到,则返回零。