optimize performance

This commit is contained in:
1605296300@qq.com
2022-08-22 01:25:59 +08:00
parent 544226fde9
commit cdb31634c7
17 changed files with 847 additions and 263 deletions
+2 -1
View File
@@ -226,6 +226,7 @@ public class UmaViewerBuilder : MonoBehaviour
var firsehead = CurrentContainer.Heads[0];
var FaceDriven = firsehead.GetComponent<AssetHolder>()._assetTable.list.Find(a => { return a.Key == "facial_target"; }).Value as FaceDrivenKeyTarget;
var newFaceDriven = firsehead.AddComponent<FaceDrivenKeyTarget>();
newFaceDriven.callBack = UmaViewerUI.Instance;
newFaceDriven._eyebrowTarget = FaceDriven._eyebrowTarget;
newFaceDriven._eyeTarget = FaceDriven._eyeTarget;
newFaceDriven._mouthTarget = FaceDriven._mouthTarget;
@@ -391,7 +392,7 @@ public class UmaViewerBuilder : MonoBehaviour
object asset = bundle.LoadAsset(name);
if (asset == null) { continue; }
Debug.Log("##"+bundle.name + "/" + name + $" ({asset.GetType()})");
Debug.Log("Bundle:"+bundle.name + "/" + name + $" ({asset.GetType()})");
Type aType = asset.GetType();
if (aType == typeof(AnimationClip))
{