⚙ïļmaterial_var

material_var datatype

Functions

get_int

material_var:get_int()

Returns:

material var as an integer

number

set_int

material_var:set_int(1)

value

number

integer value to set var to

get_float

material_var:get_float()

Returns:

material var as a float

number

set_float

material_var:set_float(1.5)

value

number

floating point value to set var to

get_string

material_var:get_string()

Returns:

material var as a string

string

set_string

material_var:set_string("abc")

value

string

string value to set var to

get_vector

material_var:get_vector()

Returns:

material var as a vector table

table

set_vector

material_var:set_vector(1, 2, 3)

x

number

x value

y

number

y value

z

number

z value

w

number

w value

Last updated