Commit 08fa2264 authored by SherryChaos's avatar SherryChaos

bug fix

parent 762d21f1
...@@ -291,8 +291,10 @@ namespace MDPro3 ...@@ -291,8 +291,10 @@ namespace MDPro3
{ {
//召唤兽 梅尔卡巴[75286622]在安卓端和iOS端的Spine动画资源丢失, //召唤兽 梅尔卡巴[75286622]在安卓端和iOS端的Spine动画资源丢失,
//临时修复方案为从已加载的AssetBundle中寻找SkeletonDataAsset并赋值。 //临时修复方案为从已加载的AssetBundle中寻找SkeletonDataAsset并赋值。
if (prefab.transform.GetChild(0).GetChild(0).TryGetComponent<SkeletonAnimation>(out var sa))
{ var sa = prefab.GetComponentInChildren<SkeletonAnimation>();
if (sa == null)
return;
if (sa.skeletonDataAsset == null) if (sa.skeletonDataAsset == null)
{ {
foreach (var asset in assets) foreach (var asset in assets)
...@@ -303,7 +305,6 @@ namespace MDPro3 ...@@ -303,7 +305,6 @@ namespace MDPro3
} }
} }
} }
}
public static async UniTask<Material> LoadProtectorMaterial(string code, CancellationToken token) public static async UniTask<Material> LoadProtectorMaterial(string code, CancellationToken token)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment