- Modifié
Skeleton graphics can't use custom slot materials?
I use CustomSlotMaterials.Add(Slot,Material) to assign materials to multiple slots.
example)
SkeletonMecanim.CustomSlotMaterials.Add(SkeletonMecanim.skeleton.FindSlot("Body"), BodyMaterial)
SkeletonMecanim.CustomSlotMaterials.Add(SkeletonMecanim.skeleton.FindSlot("Hair"), HairMaterial)
I had to use the same character in the UI, so I created a SkeletonGraphic and tried to access CustomSlotMaterials in the same way, but there is no CustomSlotMaterials in SkeletonGraphic. Is there a way? :'((I am using translator.)
You can use the SkeletonGraphicCustomMaterials
component, but unfortunately, it is not as powerful as SkeletonRendererCustomMaterials
and does not support custom Slot materials. Our Unity expert, Harald has previously answered about workarounds for this issue in the following thread:
SkeletonGraphicCustomMaterialsの使い方について
It seems to be written as implemented in version 4.1, but is it not implemented yet? I'll find another way. Thank you for answer. It has been very helpful.
It seems to be written as implemented in version 4.1, but is it not implemented yet?
Yes, it has not been implemented yet. You can subscribe to the issue ticket, then you will receive additional notifications upon any progress.