Skip to content

Format

typescript
Material.HasMatrix4x4(name)

class: Material

Description

Checks if the current material's shader has a Matrix4x4 property with the specified name.

Parameters

param_nametypedescription
namestringThe name of the property.

Return

typedescription
booleanTrue if the shader has a Matrix4x4 property with the specified name, otherwise false.

Code Example

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