Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Material.GetFloat

Switch to Manual
public float GetFloat(string name);
public float GetFloat(int name);

Parameters

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

Description

Get a named float value.

no example available in C#

Did you find this page useful? Please give it a rating: