Skip to main content

Material.GetTag(string tag, boolean searchFallbacks, string defaultValue)

Get the value of material's shader tag.

Parameters:

NameTypeDescription
tagstringtag
searchFallbacksbooleanIf true will look for tag in all subshaders and all fallbacks.
defaultValuestringIf the material's shader does not define the tag, defaultValue is returned.

Returns:

typeDescription
stringthe value of material's shader tag.

Usage

---@type Material
local material;

---@type string
local tag;

---@type boolean
local searchFallbacks;

---@type string
local defaultValue;


local val0 = material.GetTag(tag, searchFallbacks, defaultValue)