Hi, I created this quad using CreatePrimitive(PrimitiveType.Quad)
Is there any way I can change the variable circled in the image?
test this code from Unity documentation:
//Create a new cube primitive to set the color on
GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube);
//Get the Renderer component from the new cube
var cubeRenderer = cube.GetComponent<Renderer>();
//Call SetColor using the shader property name "_Color" and setting the color to red
cubeRenderer.material.SetColor("_Color", Color.red);