Hello, here are some questions about loading atlas in Unity.
I try to use multiple atlas for the asset. One atlas for the animal body, another atlas for the clothing.
But those two atlas seem to cause the layer order problem in Unity.
(The layer of clothing atlas move to be back and something moves to the front automatically, without any action from player or clicking)
What can I do in order to fix this problem?
Here is the code.
Spine setup code:
m_CharacterSpine.skeletonDataAsset = AssetLoader.LoadAsset<SkeletonDataAsset>($"spine\\job\\{data.career.spineKey}\\character_SkeletonData");
m_CharacterSpine.initialSkinName = $"char00{data.setting.id.ToString("00")}";
m_CharacterSpine.Initialize(true);
Set spine anima code:
m_CharacterSpine.AnimationState.SetAnimation(0, anima, true);
Here is the video.
VIDEO
Thank you so much!