Unity 2020.1.1f1 latest
Substance in Unity 2.5.2
HDRP 9.0.0-preview 33
Hi,
In a newly created empty project with the latest version of Unity and HDRP, if you duplicate a material with the following code, the duplicated material's inspector will display properly.
public Material originalMaterial; // assigned a material from the project. Can use any shader.
public Material clonedMaterial; // not assigned anything. Should be null in the inspector.
void Awake()
{
clonedMaterial = new Material(originalMaterial); // This duplicates the original material at runtime.
}
Once I import Substance 2.5.2, and run the above scenario, if you double click on the clonedMaterial in the inspector, it says "No Shader Selected", and there are no properties visible in the inspector.
Tests show that the material is cloned properly, but the duplicated material's inspector is broken. This makes it impossible to tweak the duplicated material's properties via the inspector because nothing is visible.
The Substance Plugin is breaking the material inspector for runtime duplicated materials.