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
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
Avatar
mumu
  • Postovi: 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
  • Postovi: 140

mumu

Luke je napisao/la: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~~~ ;) ;)
Avatar
mumu
  • Postovi: 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
Avatar
Harald

Harri
  • Postovi: 4332

mumu

Harald je napisao/la: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
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
Avatar
mumu
  • Postovi: 65

Harald

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

Harri
  • Postovi: 4332


Natrag na Bugs