Skip to content

Format

typescript
Material.HasFloat(name)

class: Material

Description

Check if the current material has a Float property with the specified name.

Parameters

param_nametypedescription
namestringThe name of the property.

Return

typedescription
booleanTrue 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");