Create your own 3D models and 2D sprites! · By Kenney
I want to change the color of the pieces of an object i am doing. How do you do it with forge.materialColor ?
Hey! You can write forge.materialColor(name of material, color in HEX), so i.e.
forge.materialColor("stone", "#FFFFFF")
Do note that this is just when scripting, you can change the color or material in the pane on the left.
Thanks but I want to change the color of the pieces I am creating with the script. Can I do that ?