void OnOpenClicked() { #if UNITY_STANDALONE_WIN var path = ComDialog.Open("open VRM", "*.vrm", "*.glb", "*.bvh"); #else var path = Application.dataPath + "/default.vrm"; #endif if (string.IsNullOrEmpty(path)) { return; } var ext = Path.GetExtension(path).ToLower(); switch (ext) { case ".gltf": case ".glb": case ".vrm": StartCoroutine(LoadModelAsync(path)); break; case ".bvh": LoadMotionAsync(path); break; } }
private void OnOpenClickedBVH() { var path = ComDialog.Open("open BVH", "*.bvh"); if (string.IsNullOrEmpty(path)) { return; } _errorMessagePanel.gameObject.SetActive(false); LoadMotion(path); }
private void OnOpenClickedVRM() { var path = ComDialog.Open("open VRM", "*.vrm"); if (string.IsNullOrEmpty(path)) { return; } _errorMessagePanel.gameObject.SetActive(false); LoadModel(path); }