# Webgl build error

**URL:** https://forum.convai.com/t/webgl-build-error/4610
**Category:** Unity SDK
**Tags:** question, unity, webgl
**Created:** [July 16, 2025, 1:38pm UTC](https://forum.convai.com/t/webgl-build-error/4610 "2025-07-16T13:38:56Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![team-content](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/team-content/32/4904_2.png) [@team-content](https://forum.convai.com/u/team-content)
#### Post date: [July 16, 2025, 1:38pm UTC](https://forum.convai.com/t/webgl-build-error/4610/1 "2025-07-16T13:38:56Z")

</div>

unity 6.1.11f1  
convai 3.3.0  
webgl build

 ![image](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/b/b5bb5f2a94bb9112377a746dd72cc28de2e22e96.jpeg)

Assets\Convai\Scripts\Runtime\UI\SettingsPanel\UIMicrophoneSettings.cs(131,67): error CS0103: The name ‘Microphone’ does not exist in the current context

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [July 16, 2025, 1:43pm UTC](https://forum.convai.com/t/webgl-build-error/4610/2 "2025-07-16T13:43:28Z")

</div>

Hello @team-content,

Please make sure to follow our documentation.

> **[Building for WebGL | Convai Documentation](https://docs.convai.com/api-docs/plugins-and-integrations/unity-plugin/building-for-supported-platforms/building-for-webgl)**
>
> This guide will help you integrate Convai's WebGL capabilities into your Unity projects, enabling you to bring to life AI characters with human-like conversational abilities.

---

<div class="post-metadata">

### Author: ![team-content](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/team-content/32/4904_2.png) [@team-content](https://forum.convai.com/u/team-content)
#### Post date: [July 17, 2025, 2:35pm UTC](https://forum.convai.com/t/webgl-build-error/4610/3 "2025-07-17T14:35:40Z")

</div>

followed your guide.  
installed webgl version of convai  
build and run demo scene.  
error when activating microphone. typing does not work.

2.framework.js:2744 An abnormal situation has occurred: the PlayerLoop internal function has been called recursively. Please contact Customer Support with a sample project so that we can reproduce the problem and troubleshoot it.

| | \_JS\_Log\_Dump | @ | 2.framework.js:2744 |
| --- | --- | --- | --- |
| | $WebGLPrintfConsolev(LogType, char const\*, void\*) | @ | 2.wasm:0x270e241 |
| | $printf\_consolev(LogType, char const\*, void\*, bool) | @ | 2.wasm:0x270e86e |
| | $InternalErrorConsole(char const\*, …) | @ | 2.wasm:0x270fbe3 |
| | $DebugStringToFilePostprocessedStacktrace(DebugStringToFileData const&) | @ | 2.wasm:0x270f9b9 |
| | $DebugStringToFile(DebugStringToFileData const&) | @ | 2.wasm:0x270f28f |
| | $PlayerLoop() | @ | 2.wasm:0x25f7e55 |
| | $MainLoop() | @ | 2.wasm:0x254571e |
| | $MainLoopUpdateFromBackground(void\*) | @ | 2.wasm:0x2545636 |
| | $dynCall\_vi | @ | 2.wasm:0x272fc06 |
| | (anonymous) | @ | 2.framework.js:1797 |
| | (anonymous) | @ | 2.framework.js:11890 |
| | (anonymous) | @ | 2.framework.js:11890 |
| | callUserCallback | @ | 2.framework.js:9943 |
| | (anonymous) | | |

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [July 17, 2025, 2:41pm UTC](https://forum.convai.com/t/webgl-build-error/4610/4 "2025-07-17T14:41:46Z")

</div>

Could you please share a screen recording?

---

<div class="post-metadata">

### Author: ![team-content](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/team-content/32/4904_2.png) [@team-content](https://forum.convai.com/u/team-content)
#### Post date: [July 22, 2025, 3:56pm UTC](https://forum.convai.com/t/webgl-build-error/4610/5 "2025-07-22T15:56:19Z")

</div>

i used your official webgl demo. using unity 2022.3.0. if i enter the api key it gets rejected. “please enter a valid api key”. the same api key works with newer versions of convai. did you change api key checking in a new version?

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [July 22, 2025, 4:17pm UTC](https://forum.convai.com/t/webgl-build-error/4610/6 "2025-07-22T16:17:38Z")

</div>

Hello @team-content,

Could you please try again?

---

<div class="post-metadata">

### Author: ![team-content](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/team-content/32/4904_2.png) [@team-content](https://forum.convai.com/u/team-content)
#### Post date: [July 23, 2025, 2:59pm UTC](https://forum.convai.com/t/webgl-build-error/4610/7 "2025-07-23T14:59:40Z")

</div>

api key input works now. thanks.  
webgl build works too now.

how can i use all the new convai features if i use the old webgl package for building in webgl?

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [July 23, 2025, 3:03pm UTC](https://forum.convai.com/t/webgl-build-error/4610/8 "2025-07-23T15:03:11Z")

</div>

Which features specifically are you referring to? The current latest version is 3.0.0. Could you let us know which version you’re currently using?

---

<div class="post-metadata">

### Author: ![team-content](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/team-content/32/4904_2.png) [@team-content](https://forum.convai.com/u/team-content)
#### Post date: [July 23, 2025, 3:45pm UTC](https://forum.convai.com/t/webgl-build-error/4610/9 "2025-07-23T15:45:32Z")

</div>

yes.  
convai demo for unity webgl is using unity version 2022 and version 3.0.0 [Releases · Conv-AI/Convai-Unity-WebGL-SDK · GitHub](https://github.com/Conv-AI/Convai-Unity-WebGL-SDK/releases)

while official nonwebgl convai uses version 3.3.0

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [July 23, 2025, 3:48pm UTC](https://forum.convai.com/t/webgl-build-error/4610/10 "2025-07-23T15:48:45Z")

</div>

WebGL and the Core Convai Package are indeed different SDKs due to platform-specific requirements. The WebGL SDK uses JavaScript under the hood and has a different architecture compared to the Core SDK. As such, they each have their own limitations and capabilities.

We recommend not trying to merge the two SDKs, as doing so may lead to errors and instability. If you’re targeting WebGL specifically, please continue using the dedicated WebGL SDK.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/1X/e60ef96aa7334c5ccf6682f6c6dbc20fcfa96b49.png) [@system](https://forum.convai.com/u/system)
#### Post date: [August 22, 2025, 3:48pm UTC](https://forum.convai.com/t/webgl-build-error/4610/11 "2025-08-22T15:48:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
