matproxy.Add
Description
Register a material proxy. See matproxy for more general explanation of what they are.
The
bind function is required. The init function won't run without it set.Arguments
Example
Adds PlayerColor proxy. Example taken from lua/matproxy/player_color.lua.
Output: Adds PlayerColor proxy.
Example
Material proxy values are stored like this:
- In the
.vmt:
- In Lua ( The Init function of MatProxyData structure )
Garry's Mod
Rust
Steamworks
Wiki Help