removeMaterial
Last updated
Removes a material from an object.
removeMaterial(objectName: string, materialName: string): Promise<void>objectName
string
Yes
Name of the object
materialName
string
Yes
Name of the material to remove
Promise<void>
await api.removeMaterial("Chair", "Old Material");Cannot remove the last material from an object
The material is only removed from this object, not deleted from the scene
Last updated