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_name | type | description |
|---|---|---|
| name | string | The name of the property. |
Return
| type | description |
|---|---|
boolean | True 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");