Format
typescript
Material.HasTexture(name)class: Material
Description
Check if the current material has a Texture property.
Parameters
| param_name | type | description |
|---|---|---|
| name | string | The name of the property. |
Return
| type | description |
|---|---|
boolean | Whether the material has a Texture property. |
Code Example
typescript
let material = Resources.Load<Material>(Material, "materialId");
material.HasTexture("_Texture");