Model
self:is_material_visible
Shared
Retrieves whether a specific material on a component is currently visible
Syntax
local result = self:is_material_visible(component, material)Parameters
| Type | Name | Description |
|---|---|---|
string | component | Path of the component containing the material |
string | material | Name of the material to check |
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if the material is visible, false otherwise |
Examples
local entity = model.create("character")
engine.print("info", "Eyelash visible:", entity:is_material_visible("Skeleton3D/Head", "eyelash_style_1_material"))