playbar 추가, 모델 여러개 로드
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
using SHI.Modal.ISOP;
|
||||
using SHI.Modal.NW;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
@@ -80,12 +81,18 @@ public class ShiPopupSample : MonoBehaviour
|
||||
}
|
||||
|
||||
string sa = Application.streamingAssetsPath;
|
||||
string glbPath = Path.Combine(sa, "block.glb");
|
||||
string glbPath = Path.Combine(sa, "B16VC.glb");
|
||||
string jsonPath = Path.Combine(sa, "isop_chart_short.json");
|
||||
|
||||
|
||||
Debug.Log($"Loaded blockDetailModal:{isopModal}");
|
||||
await isopModal.LoadData(glbPath, jsonPath);
|
||||
await isopModal.LoadData(new List<string> {
|
||||
Path.Combine(sa, "B11TC.glb"),
|
||||
Path.Combine(sa, "B16VC.glb"),
|
||||
Path.Combine(sa, "E11VC.glb"),
|
||||
Path.Combine(sa, "E41UC.glb"),
|
||||
Path.Combine(sa, "M11UC.glb"),
|
||||
}, jsonPath);
|
||||
}
|
||||
|
||||
private async UniTaskVoid SetupDataNW()
|
||||
@@ -96,12 +103,17 @@ public class ShiPopupSample : MonoBehaviour
|
||||
return;
|
||||
}
|
||||
|
||||
string sa = Application.streamingAssetsPath;
|
||||
string glbPath = Path.Combine(sa, "block.glb");
|
||||
string sa = Application.streamingAssetsPath;
|
||||
string jsonPath = Path.Combine(sa, "nw_chart.json");
|
||||
|
||||
|
||||
Debug.Log($"Loaded blockDetailModal:{nwModal}");
|
||||
await nwModal.LoadData(glbPath, jsonPath);
|
||||
await nwModal.LoadData(new List<string> {
|
||||
Path.Combine(sa, "B11TC.glb"),
|
||||
Path.Combine(sa, "B16VC.glb"),
|
||||
Path.Combine(sa, "E11VC.glb"),
|
||||
Path.Combine(sa, "E41UC.glb"),
|
||||
Path.Combine(sa, "M11UC.glb"),
|
||||
}, jsonPath);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user