Skip to main content

Material.IsKeywordEnabled(string keyword)

Checks whether a local shader keyword is enabled for this material.

Parameters:

NameTypeDescription
keywordstringThe name of the local shader keyword to check.

Returns:

typeDescription
booleantrue 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)