Format
typescript
Material.HasFloat(name)class: Material
Description
Check if the current material has a Float property with the specified name.
Parameters
| param_name | type | description |
|---|---|---|
| name | string | The name of the property. |
Return
| type | description |
|---|---|
boolean | True if the material has a Float property with the specified name, otherwise false. |
Code Example
typescript
let material = Resources.Load<Material>(Material, "materialId");
material.HasFloat("_Float");