Hi,
How do I access my materials (in Unity Editor) from code?
Hi,
How do I access my materials (in Unity Editor) from code?
Figured this out by adding public variable:
public Material my_material;
which then shows up in Unity Editor when I clicked on the prefab. Then I dragged the material onto it.