I have a script that assigns certain properties to a material and I made a custom editor which checks ".HasMatrix(), .HasInt()... " and displays a warning if it doesn't find them.
The issue is that its giving false negative. The shader has the properties and they are correctly set by the script using the same names, but it still says that they don't exist. These properties are declared in a custom file inside of shadergraph, normal properties declared in shader graph work correctly.
Thanks in advance!
#How to know if a material has a property
1 messages · Page 1 of 1 (latest)
It's also not finding a matrix even if its a property in the shadergraph. Im using material.HasMatrix()
Checks if the **ShaderLab **file assigned to the Material has a Matrix property with the given name
https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Material.HasMatrix.html