mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-21 18:15:39 -05:00
WebGLFileDialog to UniVRM_Sample_WebGLFileDialog
This commit is contained in:
@@ -7,9 +7,9 @@ namespace VRM.SimpleViewer
|
||||
#if UNITY_STANDALONE_WIN
|
||||
return FileDialogForWindows.FileDialog(title, extensions);
|
||||
#elif UNITY_WEBGL
|
||||
// Open WebGLFileDialog
|
||||
// Open UniVRM_Sample_WebGLFileDialog
|
||||
// see: Assets/UniGLTF/Runtime/Utils/Plugins/OpenFile.jslib
|
||||
WebGLUtil.WebGLFileDialog("Canvas", "FileSelected");
|
||||
WebGLUtil.UniVRM_Sample_WebGLFileDialog("Canvas", "FileSelected");
|
||||
// Control flow does not return here. return empty string with dummy
|
||||
return "";
|
||||
#elif UNITY_EDITOR
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace VRM.SimpleViewer
|
||||
public static class WebGLUtil
|
||||
{
|
||||
[DllImport("__Internal")]
|
||||
public static extern void WebGLFileDialog(string target, string message);
|
||||
public static extern void UniVRM_Sample_WebGLFileDialog(string target, string message);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user