CHANGED RENDER MATERIAL: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Cosmic Linden (talk | contribs)
Link to what a material IDs and overrides are
Lucia Nightfire (talk | contribs)
m Removed "future feature" warning banner.
 
Line 1: Line 1:
{{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 supported testing areas with a supported test viewer.
}}
[[Category:glTF]]
[[Category:glTF]]



Latest revision as of 19:37, 5 January 2026


Description

Constant: integer CHANGED_RENDER_MATERIAL = 0x1000;

The integer constant CHANGED_RENDER_MATERIAL has the value 0x1000

Prim material ID or material overrides have changed on one or more faces.

Caveats


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 and/or overrides have changed on one or more faces.");
        }
    }
}

Deep Notes

Search JIRA for related Issues

Signature

integer CHANGED_RENDER_MATERIAL = 0x1000;