How do I change the alpha of only one object without changing the alpha of every other object attached to its texture?
I want to do this without creating multiple materials, or it would be inefficient.
I also want to use conditions to create a cube within a code block that changes its alpha. And I cannot create separate materials through the code for each cube to have its own material, without giving every created material the same name, which makes every created cube have the same material. This means every time one cube's alpha changes, every other cube's alpha is set to it.
I tried increasing a variable every time a cube was created, so that the material's name would be set to the variable, then the cube would have its texture set to the variable. This failed.