PQ77

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.
PQ77
  • Messaggi: 2

Harald

PQ77 ha scritto: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!
Avatar utente
Harald

Harri
  • Messaggi: 4332


Torna a Unity