• Unity
  • How to MixandMatch Skin Using SkeletonMecanim

Hello, I want to do MixandMatch skin at runtime with SkeletonMecanim.
I can't find it anywhere in document since the way to apply new generated skin at runtime is to use

AnimationState.Apply(skeleton);

which doesn't have in SkeletonMecanim. The only thing I can find is

SkeletonMechanim.Initialize(true)

which is quite an overhead and it only work with pre-set initialSkinName which is the pre-generated skin.

Related Discussions
...
  • Изменено
PQ77 написал

The only thing I can find is
SkeletonMechanim.Initialize(true)
which is quite an overhead and it only work with pre-set initialSkinName which is the pre-generated skin.

Yes, please don't call Initialize(true), this would be complete overkill.

Please just call skeletonMecanim.Update(). I just noticed that the documentation page does not list this alternative for SkeletonMecanim yet. We have just updated the documentation pages accordingly. Thanks for reporting!