Revision Difference
render.MaterialOverrideByIndex#560565
<function name="MaterialOverrideByIndex" parent="render" type="libraryfunc">
<description>
Similar to <page>render.MaterialOverride</page>, but overrides the materials per index. Similar to <page>Entity:SetSubMaterial</page>
<page>render.MaterialOverride</page> overrides effects of this function.
</description>
<realm>Client</realm>
<args>
<arg name="index" type="number">The index of the material to override, in range of 0 to 31.</arg>
<arg name="material" type="IMaterial">The material to override with</arg>⤶
<arg name="index" type="number" default="nil">The index of the material to override, in range of 0 to 31. `nil` will reset all overrides.</arg>
<arg name="material" type="IMaterial" default="nil">The material to override with, `nil` will reset the override for given index.</arg>⤶
</args>
</function>