Problem statement
I have build a character creator using spine. The spine model is painted by my artists, I'm using unity to create the character creator.
The spine model is comprised of several nested skins like below:
Now i have an issue in my creator where when i change between glasses and eyes i sometimes get a Unity error: "Invalid worldAAB object is either too large og too far away from the origin" as the error occurs the model starts to blink rapidly.
If i change to another pair of glasses/eyes the flickering stops. Changing hair style and other skins works fine, it's only the eyes/glasses where it happens.
We create the composite skin as adviced in the documentaiton:
var skeletonData = _skeleton.Data;
var characterSkin = new Skin("avatar");
characterSkin.AddSkin(skeletonData.FindSkin(_avatar.Base));
characterSkin.AddSkin(skeletonData.FindSkin(_avatar.Ears));
characterSkin.AddSkin(skeletonData.FindSkin(_avatar.Hair));
characterSkin.AddSkin(skeletonData.FindSkin(_avatar.Eyes));
characterSkin.AddSkin(skeletonData.FindSkin(_avatar.Nose));
// Set the active skin.
_skeleton.SetSkin(characterSkin);
// Use setup pose to set base attachments.
_skeleton.SetSlotsToSetupPose();
// Use AnimationState to set attachments active in the current movement.
_animationState.Apply(_skeleton);
Here's a recording of the bug:
https://esotericsoftware.com/forum/assets/files/2023-11-14/1699967235-830771-2023-11-14-13-58-23.mkv
Sometimes when switching between eyes and glasses i see the models warp out of view, not sure if it is related?
Here's a video of that:
https://esotericsoftware.com/forum/assets/files/2023-11-14/1699967206-81964-2023-11-14-13-54-12.mkv
Is this a known issue?
Runtime information
We're running unity 2022.3.7 and the most recent spine packages:
The project also uses URP