#How to know if a material has a property

1 messages · Page 1 of 1 (latest)

dawn nacelle
#

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!

#

It's also not finding a matrix even if its a property in the shadergraph. Im using material.HasMatrix()

worldly ice