I am setting a new 3D Texture via .SetTexture() to the Material in Meshrenderer. However it only creates an instance of the material, which looks odd. But the Material in my assets folder is changed correctly. But when I assign the Material in Update() it works. When I do it in Start() I just see blue dots, so something was updated but not correctly I guess.
I have already tried sharedMaterial instead of Material
My code (unnecessary parts are left out):
//volumeRenderMaterial is the original Material on which I want to change the texture //volume is a 3D texture created at runtime in Start() volumeRenderMaterial.SetTexture("VolumeTex", volume); GetComponent().material = volumeRenderMaterial;