CHANGED RENDER MATERIAL
Revision as of 08:27, 6 October 2022 by Cosmic Linden (talk | contribs) (Created page with "{{hint |mode=warning |title_desc=Future feature |desc=This function will be supported in the upcoming GLTF Materials project.</b><br/>Currently it will only work in support...")
Warning! Future feature | |
This function will be supported in the upcoming GLTF Materials project. |
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer CHANGED_RENDER_MATERIAL = 0x1000;The integer constant CHANGED_RENDER_MATERIAL has the value 0x1000
Prim material ID has changed on one or more faces.
Caveats
Related Articles
Functions
• | llSetRenderMaterial | |||
• | llGetRenderMaterial | |||
• | llSetPrimitiveParams | – | PRIM_RENDER_MATERIAL | |
• | llSetLinkPrimitiveParams | – | PRIM_RENDER_MATERIAL |
Events
• | changed |
Examples
default
{
changed(integer change)
{
if (change & CHANGED_RENDER_MATERIAL) //note that it's & and not &&... it's bitwise!
{
llOwnerSay("The prim's material ID has changed on one or more faces.");
}
}
}