Improve Asset Loading
This commit is contained in:
@@ -102,7 +102,7 @@ namespace Gallop.Live.Cutt
|
||||
//Get MotionList
|
||||
foreach (var motion in UmaViewerMain.Instance.AbMotions.Where(a => a.Name.StartsWith($"3d/motion/live/body/son{Director.instance.live.MusicId}") && Path.GetFileName(a.Name).Split('_').Length == 4))
|
||||
{
|
||||
AssetBundle motionAB = UmaViewerBuilder.LoadOrGet(motion);
|
||||
AssetBundle motionAB = UmaAssetManager.LoadAssetBundle(motion);
|
||||
AnimationClip motionAnim = motionAB.LoadAsset<AnimationClip>(Path.GetFileName(motion.Name).Split('.')[0]);
|
||||
Anims.Add(motionAnim);
|
||||
}
|
||||
|
||||
@@ -375,7 +375,7 @@ namespace Gallop.Live
|
||||
|
||||
Debug.Log(partAsset.Name);
|
||||
|
||||
AssetBundle bundle = UmaViewerBuilder.LoadOrGet(partAsset);
|
||||
AssetBundle bundle = UmaAssetManager.LoadAssetBundle(partAsset);
|
||||
TextAsset partData = bundle.LoadAsset<TextAsset>($"m{live.MusicId}_part");
|
||||
partInfo = new PartEntry(partData.text);
|
||||
|
||||
@@ -534,7 +534,7 @@ namespace Gallop.Live
|
||||
transferObjs.ForEach(o => SceneManager.MoveGameObjectToScene(o, SceneManager.GetSceneByName("Version2")));
|
||||
});
|
||||
|
||||
AssetBundle.UnloadAllAssetBundles(true);
|
||||
UmaAssetManager.UnloadAllBundle(true);
|
||||
}
|
||||
|
||||
if (_isLiveSetup)
|
||||
|
||||
Reference in New Issue
Block a user