Hi, I need to change SkeletonAnimation.skeletonDataAsset in runtime.
Obviously just changing it doesn't update skeleton internally, so I'm doing exactly that:
SkeletonAnimation skeleton = ...;
skeleton.skeletonDataAsset = newDataAsset;
skeleton.Initialize(true);
It works perfeclty, but very very very rarely, maybe on in a couple of days of active development and testing I get IndexOutOfRangeException from internals after Initialize(true) call.
Am I doing it wrong?