I have a substance material that does rebuild textures fine in the editor. However as soon as I enter play mode and attempt to modify a paremeter, it does not rebuild its texture. In fact, it seems to revert to a cached version of the texture and even overrides the changes I have done in the editor.
Here is the code used to test this:
public GameObject bulb;
public Color offColor;
public Color onColor;
ProceduralMaterial bulbmaterial;
void Start() {
bulbmaterial = bulb.renderer.material as ProceduralMaterial;
bulbmaterial.SetProceduralColor("light_color", offColor);
bulbmaterial.SetColor("light_color", offColor);
bulbmaterial.RebuildTextures();
}
Are we missing something obvious or have we stumbled upon a bug?