Hello, I am following the same procedure, but I get build errors. I cannot figure out why? Any tips?
I have added the Nfynt package.
I am calling it like this:
public void OpenURLSameTab(string newURL)
{
#if UNITY_WEBGL && !UNITY_EDITOR
Nfynt.NPlugin.OpenURLInSameTab(newURL);
#else
Nfynt.NPlugin.OpenURL(newURL);
#endif
}
but I’m getting this error:
Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js: undefined symbol: OpenURL (referenced by top-level compiled C/C++ code)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)
Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js: undefined symbol: OpenURLInSameTab (referenced by top-level compiled C/C++ code)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)
I tried everything I knew, made a blank project, removed library folder, anything really.
Thank you!