Skip to content

Material

The Material of a Renderer component is the primary method of controlling that object's appearance.

Member Variables

Name Type Description Return
game_object GameObject The GameObject the Material is attached to.
shader The name of the Shader used by the Material.

Functions

Name Return Description
get(
get(...)
name)
Obtains the value of a given Variable on a Material.
getVars()
getVars()
Returns a table mapping Var names () to their type, which is also represented as a .
set(
set(...)
name, value)
Sets the Var of the specified name to the provided value.