Platform Compatibility
PC | Mac OSX | Oculus Quest |
---|---|---|
X | X | X |
Set the color of an object if it accepts one
Parameters:
- color
- A string value to represent the color in R,G,B or R,G,B,A
Example:
1 2 3 4 5 6 7 8 9 10 11 12 | obj.setMeshColor("1,0.5,0.25,0.1") --Another way to do this using variables --100% red red = 1 --50% green green = 0.5 --25% blue blue = 0.25 --10% opacity alpha = 0.1 obj.setMeshColor(red .. "," .. green .. "," blue .. "," .. alpha) |