我的 shader 很简单,就是一个 tiling and offset 制作滚动效果
然后我想用一个脚本控制 speed
但是实际运行没有起效果
一开始我看的这个,然后用的 sharedmaterial https://forum.unity.com/threads/having-trouble-getting-a-material-setfloat-to-work-on-custom-shader-i-wrote.846451/
也不行