Asset loading rework

Asset unloading not final!
This commit is contained in:
Katboi01
2023-08-20 12:04:11 +02:00
parent 746ed8bcf0
commit 7369af2d5b
11 changed files with 1101 additions and 1069 deletions
+3 -11
View File
@@ -89,6 +89,9 @@ public class UmaContainer : MonoBehaviour
public CharaShaderEffectData ShaderEffectData;
public List<MaterialHelper> Materials = new List<MaterialHelper>();
protected UmaViewerBuilder Builder => UmaViewerBuilder.Instance;
protected UmaViewerMain Main => UmaViewerMain.Instance;
protected UmaViewerUI UI => UmaViewerUI.Instance;
public void Initialize(bool smile)
{
@@ -400,17 +403,6 @@ public class UmaContainer : MonoBehaviour
}
}
public void SetNextAnimationCut(string cutName)
{
UmaViewerMain.Instance.AbList.TryGetValue(cutName, out UmaDatabaseEntry asset);
UmaViewerBuilder.Instance.RecursiveLoadAsset(asset);
}
public void SetEndAnimationCut()
{
UmaViewerUI.Instance.AnimationPause();
}
public void UpBodyReset()
{
if (UpBodyBone)