From 0190bf9825e72c63a5be356905c3cc66d8b5028b Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 8 Apr 2025 17:10:15 +0900 Subject: [PATCH] messageTarget and messageName --- Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerController.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerController.cs index 934ee4df6..63bfe36ff 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerController.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerController.cs @@ -139,7 +139,7 @@ namespace UniVRM10.VRM10Viewer [DllImport("__Internal")] public static extern void WebGL_VRM10_VRM10Viewer_FileDialog(string target, string message); - string FileDialog(string callbackObject, string callbackMethod) + string FileDialog(string messageTarget, string messageName) { #if UNITY_EDITOR return UnityEditor.EditorUtility.OpenFilePanel("Open VRM", "", "vrm,glb,gltf,zip"); @@ -148,7 +148,7 @@ namespace UniVRM10.VRM10Viewer #elif UNITY_WEBGL // Open WebGL_VRM10_VRM10Viewer_FileDialog // see: Assets\VRM10_Samples\VRM10Viewer\Plugins\WebGL_VRM10_VRM10Viewer.jslib - WebGL_VRM10_VRM10Viewer_FileDialog(callbackObject, callbackMethod); + WebGL_VRM10_VRM10Viewer_FileDialog(messageTarget, messageName); // Control flow does not return here. return empty string with dummy return null; #else @@ -163,9 +163,9 @@ namespace UniVRM10.VRM10Viewer var _ = LoadModelBytes("WebGL.vrm", www.downloadHandler.data, opts); } - public void OnOpenModelClicked(LoadOptions opts, string callbackObject, string callbackMethod) + public void OnOpenModelClicked(LoadOptions opts, string messageTarget, string messageName) { - var path = FileDialog(callbackObject, callbackMethod); + var path = FileDialog(messageTarget, messageName); _ = LoadModelPath(path, opts); }