- Home /
Question by
joeldavidklassen · Jun 22, 2018 at 09:59 PM ·
shaderscustom-shader
Why doesn't MaterialPropertyBlock have a SetInt function?
My understanding is that the MaterialPropertyBlock object is used to apply changes to a material on a per renderer basis. This is great, but I have a custom shader which has an Int property that I would like to change on a per renderer basis. However MaterialPropertyBlock does not have a SetInt function (See here).
.
What gives?
Comment
Answer by joeldavidklassen · Jun 22, 2018 at 11:06 PM
Okay, I figured it out. It's because SetFloat works just as well. Perhaps the documentation can include this.
Your answer
