This version of Unity is unsupported.

MaterialPropertyBlock.GetFloat

public float GetFloat(string name);
public float GetFloat(int nameID);

Parameters

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

Description

Get a float from the property block.

Returns zero if not found.