Jamieh
Topic Author
Posts: 70
Joined: 12 Apr 2019, 00:30

Unity WebGL: Issues with TextBox. Noesis 3.1.7 Unity 2022.2

25 Apr 2023, 08:45

Upgrading from Unity 2020 & Noesis 3.0.4 to Unity 2022 & Noesis 3.1.7. TextBox for our chat control was working on WebGL before. Now, when you click on the Text Box under WebGL (multiple different browsers), you don't even see the text carat show up. Hovering the mouse over it causes a glow effect, but I can't get any text into it.

Textbox works fine under iOS, Android, and in the Editor.

I've tried a few things, like setting Unity to old input manager, but I haven't found whatever magic I need to get this working again.

Any ideas? This seems to be the last thing holding back our game upgrade, so I'd really like to figure it out. Otherwise I'll have to roll things back to the earlier version of things.

Thanks.
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity WebGL: Issues with TextBox. Noesis 3.1.7 Unity 2022.2

25 Apr 2023, 11:03

Unity 2022.2 is using Emscripten 3.1.X, and that requires Noesis 3.2.

https://docs.unity3d.com/2023.2/Documen ... ipten.html

Noesis 3.1 uses Emscripten 2.0.X, so you need to use 2021.2.

Are you able to reproduce this issue with Noesis 3.2.0?
 
Jamieh
Topic Author
Posts: 70
Joined: 12 Apr 2019, 00:30

Re: Unity WebGL: Issues with TextBox. Noesis 3.1.7 Unity 2022.2

25 Apr 2023, 14:51

We can't use Noesis 3.2 because of your licensing changes.

So with Noesis 3.1.7 we are locked to Unity 2021 for WebGL and can never upgrade past it?
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity WebGL: Issues with TextBox. Noesis 3.1.7 Unity 2022.2

25 Apr 2023, 15:52

I don't think our licenses have changed, but that's something we can discuss privately.

We are still supporting 3.1 but I am not sure we can switch to the next major version of WebGL in 3.1.

Let me understand first your issue, are you able to reproduce your TextBox issue on 3.2 ?
 
Jamieh
Topic Author
Posts: 70
Joined: 12 Apr 2019, 00:30

Re: Unity WebGL: Issues with TextBox. Noesis 3.1.7 Unity 2022.2

25 Apr 2023, 19:38

Our license doesn't give us access to 3.2 so I cannot try it.

I am trying to rollback to Unity 2021 to check it on that, as we don't currently have a reason to be on 2022 other than wanting to be current.
 
Jamieh
Topic Author
Posts: 70
Joined: 12 Apr 2019, 00:30

Re: Unity WebGL: Issues with TextBox. Noesis 3.1.7 Unity 2022.2

27 Apr 2023, 07:45

I have been working on this for days and am getting nowhere. Just endless frustration.

I have been trying to upgrade to Noesis 3.1 since it came out in July of 2021 and I have never been able to get it to fully work. I always run into at least one serious problem that prevents me from using it.

Here are the problems I'm having with 3.1.7

Unity 2020.3.26f1 & Unity 2021.1.28f1 : Cannot install Noesis 3.1.7 due to the following error during installation:
C:\Noesis\NoesisGUI-Unity-3.1.7\Runtime\API\Localization\RichText.cs(339,38): error CS0246: The type or namespace name 'ReadOnlySpan<>' could not be found (are you missing a using directive or an assembly reference?)

Unity 2021.3.23f1: WebGL build fails with
failed with output:
wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_SetCallbacks
wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_CloneRenderTarget
wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_CloneRenderTarget
wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceAGC_SetCommandBuffer
wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceGNM_SetContext

Unity 2022.2.14f1:
Install and WebGL build work. But Text Boxes in WebGL are unresponsive and don't even show the text carat when clicked.

What is the secret sauce to get Noesis 3.1.7 working? Which Unity version do I need? Is this user error in some way? If so, what am I doing wrong?

We have been stuck on 3.0.4 since mid-2020 (which works mostly fine) but I'm at my wit's end.

Thanks.
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity WebGL: Issues with TextBox. Noesis 3.1.7 Unity 2022.2

27 Apr 2023, 11:41

Version of emscripten used by Noesis must be aligned with the version used by Unity. If the major versions are not aligned, it *may* not work.

Noesis 3.1 is using emscripten-2.0.24 while Noesis 3.2 is using emscripten-3.1.8.

The version used by Unity can be found at (as described here https://docs.unity3d.com/2023.2/Documen ... ipten.html)

C:\Program Files\Unity\Hub\Editor\2022.2.10f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\emscripten-version.txt

We should find ways to improve this situation, by having Noesis compiled for several versions of emscripten and include all of them in our package. That way, depending of the Unity version, our clients can change to the right library. Could you please report this?
Install and WebGL build work. But Text Boxes in WebGL are unresponsive and don't even show the text carat when clicked.
Could you please report this too?
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity WebGL: Issues with TextBox. Noesis 3.1.7 Unity 2022.2

27 Apr 2023, 11:45

Unity 2021.3.23f1: WebGL build fails with
failed with output:
wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_SetCallbacks
wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_CloneRenderTarget
wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_CloneRenderTarget
wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceAGC_SetCommandBuffer
wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceGNM_SetContext
This seems to be a "Rebuild ALL" problem, probably the result of mixing different versions of Noesis. Could you try again starting fresh?
 
Jamieh
Topic Author
Posts: 70
Joined: 12 Apr 2019, 00:30

Re: Unity WebGL: Issues with TextBox. Noesis 3.1.7 Unity 2022.2

27 Apr 2023, 17:23

Please describe the steps that would be "starting fresh".

I tried removing the package and reinstalling it. I also tried doing a "clean" build in Unity.

But it is absolutely possible that something from Noesis 3.0.4 is still stuck around in my project.

What do I need to do to completely clear out Noesis and start over?

Thanks.
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity WebGL: Issues with TextBox. Noesis 3.1.7 Unity 2022.2

27 Apr 2023, 20:34

1. Remove Noesis from Package Manager
2. Close Unity
3. Remove /Library folder
4. Open Unity
5. Install Noesis again with the Package Manager (make sure Noesis location is not inside /Assets).

That should fix any leftover.

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 75 guests