Material.HasProperty(number name)
Checks if material's shader has a property of a given name.
Parameters:
Name | Type | Description |
---|---|---|
name | number | The name of the property. |
Returns:
type | Description |
---|---|
boolean | True if material's shader has a property of a given name. |
Usage
---@type Material
local material;
---@type number
local name;
local val0 = material.HasProperty(name)