Api > Material > IsKeywordEnabled()
Material.IsKeywordEnabled(string keyword)⚓︎
Checks whether a local shader keyword is enabled for this material.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
keyword | string | The name of the local shader keyword to check. |
Returns:⚓︎
type | Description |
---|---|
boolean | true if the given local shader keyword is enabled for this material. Otherwise, returns false. |
Usage⚓︎
---@type Material
local material;
---@type string
local keyword;
local val0 = material.IsKeywordEnabled(keyword)