Skip to content

Format

typescript
Material.HasVector(name)

class: Material

Description

Check if the current material has a Vector property with the given name.

Parameters

param_nametypedescription
namestringThe name of the property.

Return

typedescription
booleanTrue if the material has a Vector property with the given name, otherwise false.

Code Example

typescript
let material = Resources.Load<Material>(Material, "materialId");
material.HasVector("_Vector");