When I change the tint color of the mesh material, it will create an instance material for that mesh correctly. However, I found that in some cases, spine will reset it to the original shared material so my tint setting is reset. For example, if the animation has attachment visible keying, the reset will happen at that time.
Demo: I was changing the tint color on update.
https://gyazo.com/6623542750399136a2b69895f247dcf4
Another case is by having mask (clipping), I cannot change the tint color at all because the material will reset instantly.
Bạn đang xem trang 1 / 1 trang
brianlin1992
Bạn không được cấp phép để xem tập tin đính kèm trong bài viết này.
1 month ago
- brianlin1992
- Bài viết: 3
Harald
You should not directly modify the
spine-unity Runtime Documentation: Changing Materials Per Instance
MeshRenderer
's materials, SkeletonRenderer
manages these and may override your changes. See here for details and what to do instead:spine-unity Runtime Documentation: Changing Materials Per Instance
1 month ago
-
Harald - Bài viết: 3996
brianlin1992
Thank you a lot! It's working now.Harald đã viết:You should not directly modify theMeshRenderer
's materials,SkeletonRenderer
manages these and may override your changes. See here for details and what to do instead:
spine-unity Runtime Documentation: Changing Materials Per Instance
1 month ago
- brianlin1992
- Bài viết: 3
Harald
Glad to hear, thanks for getting back to us!
1 month ago
-
Harald - Bài viết: 3996
Mark topic unread
• Bạn đang xem trang 1 / 1 trang
Quay về Bugs
- Thời gian được tính theo giờ UTC