- Home /
Unity 5.4 - SetVectorArray - how to read values back from MaterialPropertyBlock?
Hi There,
Having this new feature in Unity 5.4: 'Shader uniform array support. Uniform arrays can be set by new array APIs on MaterialPropertyBlock. Maximum array size is 1023. The old way of setting array elements by using number-suffixed names is deprecated.'
What is now the method of obtaining values back from MaterialPropertyBlock? It seems that the old way of using number suffix is deprecated for both write and read, which means once the values are set there doesn't seem to be any way of reading them back?
As a side note, does anyone know of a way to read BillboardImageTexCoords from SpeedTree billboards? Threre isn't any API for that in BillboardRenderer nor BillboardAsset. Previously reading them from material was working fine, but now once it was moved to MaterialPropertyBlock it doesn't seem to be possible because of the issue described above.
Thanks
Your answer
Follow this Question
Related Questions
Changing two different objects renderer colour 1 Answer
Changing Shaders HDR Color results in different Color. 1 Answer
Reduce Skid Mark Alpha Gradually 0 Answers
Is there any way to create a dynamic material when no materials have been compiled? 2 Answers
materials turn pink after changing render pipeline asset 4 Answers