mumu

aaa.jpg



If the spine file uses a mask, cannot change the shader parameters of the meshenderer through code in unity.

in unity2019.4.39f


render.material.SetFloat("_number", 0); Not working

-2b8f35cece57479.gif
You do not have the required permissions to view the files attached to this post.
User avatar
mumu
  • Posts: 65

Luke

Hello,

Thank you for reporting your issue with the 4.1 Unity runtime. Our resident Unity expert, Harri, is out for the weekend and will get to your bug report next week.
Luke

Luke
  • Posts: 125

mumu

Luke wrote:Hello,

Thank you for reporting your issue with the 4.1 Unity runtime. Our resident Unity expert, Harri, is out for the weekend and will get to your bug report next week.
ok~~~ ;) ;)
User avatar
mumu
  • Posts: 65

Harald

Please note that directly modifying the MeshRenderer's materials will not work in many situations. See documentation here:
spine-unity Runtime Documentation: Materials
spine-unity Runtime Documentation: Changing Materials Per Instance

If you want to modify the shared material, please see this forum thread here:
Load/Unload Spine at runtime
User avatar
Harald

Harri
  • Posts: 4181

mumu

Harald wrote:Please note that directly modifying the MeshRenderer's materials will not work in many situations. See documentation here:
spine-unity Runtime Documentation: Materials
spine-unity Runtime Documentation: Changing Materials Per Instance

If you want to modify the shared material, please see this forum thread here:
Load/Unload Spine at runtime
Thank you for your reply~! This is very helpful!
-6284586d1cb6ac22.gif
You do not have the required permissions to view the files attached to this post.
User avatar
mumu
  • Posts: 65

Harald

Glad it helped, thanks for getting back to us! 8)
User avatar
Harald

Harri
  • Posts: 4181


Return to Bugs