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
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
mumu
  • Beiträge: 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
  • Beiträge: 140

mumu

Luke hat geschrieben: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~~~ ;) ;)
Benutzeravatar
mumu
  • Beiträge: 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
Benutzeravatar
Harald

Harri
  • Beiträge: 4335

mumu

Harald hat geschrieben: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
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
mumu
  • Beiträge: 65

Harald

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

Harri
  • Beiträge: 4335


Zurück zu Bugs