addOrEditMaterial
Adds or changes a current Material from a specific Object. Optionally sets it as active as well.
Parameters
Description
Type
objectName
The name of the object we want to add/change.
string
material
A material object with all parameters to add/change. If a material with the same names exists, it will edit it, otherwise it will create a new one.
Usage:
Last updated