Scripting
If you prefer avoiding animations or want to change properties through code you also have the possibility.
You can find the property names by hovering the mouse over any property in the Material Inspector:

To do so you’ll need to use the following Unity functions:
Material.SetFloat: https://docs.unity3d.com/ScriptReference/Material.SetFloat.html
Material.SetColor: https://docs.unity3d.com/ScriptReference/Material.SetColor.html
Material.SetTexture: https://docs.unity3d.com/ScriptReference/Material.SetTexture.html
You can find all property names on AllIn13DShader\Shaders/AllIn13DShader.shader. All properties are located at the top of the file. Here an example code snippet:
mat = GetComponent<Renderer>().material;
mat.SetFloat("_Alpha", 1f);
mat.SetColor("_Color", new Color(0.5f, 1f, 0f, 1f));
mat.SetTexture("_MainTex", texture);
Last updated