Api > Material > GetTag()
Get the value of material's shader tag.
Parameters:
Name |
Type |
Description |
tag |
string |
tag |
searchFallbacks |
boolean |
If true will look for tag in all subshaders and all fallbacks. |
defaultValue |
string |
If the material's shader does not define the tag, defaultValue is returned. |
Returns:
type |
Description |
string |
the 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)