Revision Difference
Structures/MatProxyData#517034
<cat>struct</cat>
<structure>
<description>Table structure used by <page>matproxy.Add</page>.</description>
<fields>{{StructureField|string|name|The name of the material proxy</fields>⤶
⤶
</structure>⤶
⤶
{{StructureField|function|init|The function used to get variables from the ".vmt". Called once per each ".vmt". Arguments are:
<fields>⤶
<item name="name" type="string">The name of the material proxy</item>⤶
<item name="init" type="function">The function used to get variables from the ".vmt". Called once per each ".vmt". Arguments are:
* <page>table</page> self
* <page>string</page> materialName
* <page>table</page> values⤶
}}{{StructureField|function|bind|The function used to apply the proxy. This is called every frame while any materials with this proxy are used in world. Arguments are:
* <page>table</page> values</item>⤶
<item name="bind" type="function">The function used to apply the proxy. This is called every frame while any materials with this proxy are used in world. Arguments are:
* <page>table</page> self
* <page>string</page> materialName
* <page>Entity</page> ent⤶
}}⤶
}}* <page>Entity</page> ent</item>⤶
</fields>⤶
⤶
</structure>⤶
⤶