# \#sdk-unity

**URL:** https://forum.heroiclabs.com/tag/sdk-unity/11.md

[Latest](https://forum.heroiclabs.com/latest.md) · [Categories](https://forum.heroiclabs.com/categories.md) · [Tags](https://forum.heroiclabs.com/tags.md)

---

## [Where can I store and how can I access game content databases?](https://forum.heroiclabs.com/t/where-can-i-store-and-how-can-i-access-game-content-databases/6544)

<div class="topic-metadata">

**Author:** [@FuryFTF](https://forum.heroiclabs.com/u/FuryFTF)\
**Replies:** 3\
**Last updated:** [April 14, 2026, 10:00am UTC](https://forum.heroiclabs.com/t/where-can-i-store-and-how-can-i-access-game-content-databases/6544 "2026-04-14T10:00:15Z")

</div>

Hey there! I’ve started developing my game, and its async. The client sends requests to the server and receives data back, rather than running match-based sessions. The game is similar in structure to things like My Si…

---

## [How to set up player roles in anon/relay matchmaking](https://forum.heroiclabs.com/t/how-to-set-up-player-roles-in-anon-relay-matchmaking/6532)

<div class="topic-metadata">

**Author:** [@AllenPDX](https://forum.heroiclabs.com/u/AllenPDX)\
**Replies:** 3\
**Last updated:** [April 5, 2026, 6:09am UTC](https://forum.heroiclabs.com/t/how-to-set-up-player-roles-in-anon-relay-matchmaking/6532 "2026-04-05T06:09:29Z")

</div>

Our basic scenario: Two-player game, Unity client, relay server, using anonymous authentication. We already have random matchmaking working with random role assignment as well as pre-arranged matches between two player…

---

## [Network disconnection and reconnection](https://forum.heroiclabs.com/t/network-disconnection-and-reconnection/6431)

<div class="topic-metadata">

**Author:** [@zhuguiqing](https://forum.heroiclabs.com/u/zhuguiqing)\
**Replies:** 4\
**Last updated:** [April 2, 2026, 12:04pm UTC](https://forum.heroiclabs.com/t/network-disconnection-and-reconnection/6431 "2026-04-02T12:04:33Z")

</div>

While developing a game in Unity, I’m experiencing significant performance lag during network disconnection and reconnection processes. Upon investigation with Unity’s Profiler, I’ve identified that the high latency is o…

---

## [Need advice on relay server-client setup for long intervals between data messages](https://forum.heroiclabs.com/t/need-advice-on-relay-server-client-setup-for-long-intervals-between-data-messages/6491)

<div class="topic-metadata">

**Author:** [@AllenPDX](https://forum.heroiclabs.com/u/AllenPDX)\
**Replies:** 2\
**Last updated:** [January 15, 2026, 5:59pm UTC](https://forum.heroiclabs.com/t/need-advice-on-relay-server-client-setup-for-long-intervals-between-data-messages/6491 "2026-01-15T17:59:17Z")

</div>

Hey all, We’ve developed a Unity/WebGL game with Nakama using the relay server setup (one client acts as host). We are having disconnect/timeout issues regarding how long players take to make moves. You can think of t…

---

## [Fix Error WebSocketException When Disconnecting Unity Editor from Server](https://forum.heroiclabs.com/t/fix-error-websocketexception-when-disconnecting-unity-editor-from-server/6468)

<div class="topic-metadata">

**Author:** [@JoenTNT](https://forum.heroiclabs.com/u/JoenTNT)\
**Replies:** 3\
**Last updated:** [December 30, 2025, 3:45am UTC](https://forum.heroiclabs.com/t/fix-error-websocketexception-when-disconnecting-unity-editor-from-server/6468 "2025-12-30T03:45:11Z")

</div>

Hi, I have been testing the connection between my Unity Editor and Nakama Server running locally. However I got this error after I disconnecting socket: System.Net.WebSockets.WebSocketException (0x80004005): The remote …

---

## [Unity - Handling AI & Game System in Match](https://forum.heroiclabs.com/t/unity-handling-ai-game-system-in-match/6475)

<div class="topic-metadata">

**Author:** [@JoenTNT](https://forum.heroiclabs.com/u/JoenTNT)\
**Replies:** 3\
**Last updated:** [December 23, 2025, 2:03pm UTC](https://forum.heroiclabs.com/t/unity-handling-ai-game-system-in-match/6475 "2025-12-23T14:03:15Z")

</div>

Hi, I’m a bit confuse how to sync AI or Custom Game System in a server-side. I’m talking about the architecture of how does OpCode and Match State works to make sure that non-client-side objects are running logically in …

---

## [Offline Gameplay + Server Authoritative Multiplayer](https://forum.heroiclabs.com/t/offline-gameplay-server-authoritative-multiplayer/6464)

<div class="topic-metadata">

**Author:** [@Firebugs](https://forum.heroiclabs.com/u/Firebugs)\
**Replies:** 3\
**Last updated:** [November 28, 2025, 2:03pm UTC](https://forum.heroiclabs.com/t/offline-gameplay-server-authoritative-multiplayer/6464 "2025-11-28T14:03:00Z")

</div>

Hey all, I couldn’t seem to find an answer to this via googling (which really surprised me since I’m sure this must have been asked / covered before). I’m currently making my first networked game (Unity front-end, Nakam…

---

## [Unity WebGL custom authentification won't work](https://forum.heroiclabs.com/t/unity-webgl-custom-authentification-wont-work/6221)

<div class="topic-metadata">

**Author:** [@moteam](https://forum.heroiclabs.com/u/moteam)\
**Replies:** 4\
**Last updated:** [November 6, 2025, 5:26pm UTC](https://forum.heroiclabs.com/t/unity-webgl-custom-authentification-wont-work/6221 "2025-11-06T17:26:57Z")

</div>

Hi. I’m experiencing an issue with my game made on Unity, specifically - the WebGL build. I’ve tried everything by now, and got no idea how to troubleshoot. So, the server side is in typescript, and the sdk is Unity. …

---

## [Five Unity project to jumpstart your game](https://forum.heroiclabs.com/t/five-unity-project-to-jumpstart-your-game/6437)

<div class="topic-metadata">

**Author:** [@trandromeda](https://forum.heroiclabs.com/u/trandromeda)\
**Replies:** 0\
**Last updated:** [October 25, 2025, 4:51pm UTC](https://forum.heroiclabs.com/t/five-unity-project-to-jumpstart-your-game/6437 "2025-10-25T16:51:49Z")

</div>

Hey everyone! We know many of you come here looking for the quickest path from “hello world” to real-world game features. Today we’ve got something that should make your life a lot easier. We just released five complet…

---

## [Cancel All Matchmaker Tickets](https://forum.heroiclabs.com/t/cancel-all-matchmaker-tickets/6421)

<div class="topic-metadata">

**Author:** [@cobby363](https://forum.heroiclabs.com/u/cobby363)\
**Replies:** 1\
**Last updated:** [October 6, 2025, 9:51am UTC](https://forum.heroiclabs.com/t/cancel-all-matchmaker-tickets/6421 "2025-10-06T09:51:32Z")

</div>

Hi All, I am currently running into an issue with matchmaking tickets. I am occasionally getting an error in which too many matchmaker tickets are being sent up. I have been unable to recreate this issue locally. What I…

---

## [Calling RPCs with a HTTP key via POST when a payload is provided](https://forum.heroiclabs.com/t/calling-rpcs-with-a-http-key-via-post-when-a-payload-is-provided/3498)

<div class="topic-metadata">

**Author:** [@chakie](https://forum.heroiclabs.com/u/chakie)\
**Replies:** 3\
**Last updated:** [September 18, 2025, 5:42pm UTC](https://forum.heroiclabs.com/t/calling-rpcs-with-a-http-key-via-post-when-a-payload-is-provided/3498 "2025-09-18T17:42:30Z")

</div>

While checking out the new releases we stumbled upon this line mentioned in the new Unity client lib release: Nakama: Adds support for calling RPCs with a HTTP key via POST when a payload is provided. See Releases · he…

---

## [Socket disconnecting throwing error](https://forum.heroiclabs.com/t/socket-disconnecting-throwing-error/5261)

<div class="topic-metadata">

**Author:** [@UmarBhatPlaystrom](https://forum.heroiclabs.com/u/UmarBhatPlaystrom)\
**Replies:** 8\
**Last updated:** [September 16, 2025, 4:23pm UTC](https://forum.heroiclabs.com/t/socket-disconnecting-throwing-error/5261 "2025-09-16T16:23:11Z")

</div>

Hi! Recently I started getting an error each time my socket disconnects and I am trying to reconnect. As far as I understand socket.idle\_timeout\_ms is a flag in the configuration that is responsible for how long the idl…

---

## [Issue with socket automatically closing when creating a party Unity](https://forum.heroiclabs.com/t/issue-with-socket-automatically-closing-when-creating-a-party-unity/1796)

<div class="topic-metadata">

**Author:** [@champilas](https://forum.heroiclabs.com/u/champilas)\
**Replies:** 4\
**Last updated:** [August 7, 2025, 10:02am UTC](https://forum.heroiclabs.com/t/issue-with-socket-automatically-closing-when-creating-a-party-unity/1796 "2025-08-07T10:02:57Z")

</div>

Good night and first of all, thank you for the incredible work with Nakama! My problem is that the socket is closed automatically when try to create a Party. I’m following the instructions on Nakama Docs: Parties - Hero…

---

## [Getting error=Post "": unsupported protocol scheme "" with Google Authentication](https://forum.heroiclabs.com/t/getting-error-post-unsupported-protocol-scheme-with-google-authentication/6316)

<div class="topic-metadata">

**Author:** [@zee-imaginationai](https://forum.heroiclabs.com/u/zee-imaginationai)\
**Replies:** 9\
**Last updated:** [July 15, 2025, 11:35am UTC](https://forum.heroiclabs.com/t/getting-error-post-unsupported-protocol-scheme-with-google-authentication/6316 "2025-07-15T11:35:48Z")

</div>

Hi I am trying to Authenticate Nakama with Google using Google Play Games Service in Unity. I have setup Google Cloud OAuth (tried oauth in OAuth Playground and it is working correctly) but when I try to authenticate in-…

---

## [Unity WebGL ListChannelMessagesAsync returns weird ChannelId](https://forum.heroiclabs.com/t/unity-webgl-listchannelmessagesasync-returns-weird-channelid/6304)

<div class="topic-metadata">

**Author:** [@mautoan11](https://forum.heroiclabs.com/u/mautoan11)\
**Replies:** 5\
**Last updated:** [July 14, 2025, 9:39am UTC](https://forum.heroiclabs.com/t/unity-webgl-listchannelmessagesasync-returns-weird-channelid/6304 "2025-07-14T09:39:52Z")

</div>

Hi, I got a weird ChannelId when calling ListChannelMessagesAsync. I client works fine on Desktop and Android. But when I tried to build on WebGL, the message seemed fine, but the values of ChannelId of messages are “…

---

## [Problems with AuthenticateTokenGenerate and Session Use](https://forum.heroiclabs.com/t/problems-with-authenticatetokengenerate-and-session-use/6297)

<div class="topic-metadata">

**Author:** [@sadegh-askari](https://forum.heroiclabs.com/u/sadegh-askari)\
**Replies:** 3\
**Last updated:** [July 3, 2025, 9:29am UTC](https://forum.heroiclabs.com/t/problems-with-authenticatetokengenerate-and-session-use/6297 "2025-07-03T09:29:06Z")

</div>

Hi, I’m implementing a custom authentication flow using Unity for the client and Go for the backend code, and I’ve run into two problems. 1. AuthenticateTokenGenerate does not return a refresh token initializer.Registe…

---

## [What's the correct way to throw an expected error? (TypeScript server)](https://forum.heroiclabs.com/t/whats-the-correct-way-to-throw-an-expected-error-typescript-server/6265)

<div class="topic-metadata">

**Author:** [@KamilDev](https://forum.heroiclabs.com/u/KamilDev)\
**Replies:** 1\
**Last updated:** [June 23, 2025, 3:50pm UTC](https://forum.heroiclabs.com/t/whats-the-correct-way-to-throw-an-expected-error-typescript-server/6265 "2025-06-23T15:50:37Z")

</div>

I noticed that Nakama has a built-in retry mechanism if the RPC request to the server resulted in error. However in my game, for example, when a player requests to merge three items together, we do some validation, and …

---

## [When leaderboard no some ownerid record, Use Unity leaderboard Api ListLeaderboardRecordsAsync and these no record ownerids return reslut](https://forum.heroiclabs.com/t/when-leaderboard-no-some-ownerid-record-use-unity-leaderboard-api-listleaderboardrecordsasync-and-these-no-record-ownerids-return-reslut/6273)

<div class="topic-metadata">

**Author:** [@oldding](https://forum.heroiclabs.com/u/oldding)\
**Replies:** 1\
**Last updated:** [June 23, 2025, 2:47pm UTC](https://forum.heroiclabs.com/t/when-leaderboard-no-some-ownerid-record-use-unity-leaderboard-api-listleaderboardrecordsasync-and-these-no-record-ownerids-return-reslut/6273 "2025-06-23T14:47:24Z")

</div>

When leaderboard no some ownerid record, Call Unity leaderboard Api ListLeaderboardRecordsAsync and these no record ownerids, IApiLeaderboardRecordList.OwnerRecords has these ownerid record or no these ownerid record

---

## [Pointer\_stringify is not defined at \_NKCreateSocket](https://forum.heroiclabs.com/t/pointer-stringify-is-not-defined-at-nkcreatesocket/5915)

<div class="topic-metadata">

**Author:** [@Dineshdev005](https://forum.heroiclabs.com/u/Dineshdev005)\
**Replies:** 2\
**Last updated:** [April 10, 2025, 12:13pm UTC](https://forum.heroiclabs.com/t/pointer-stringify-is-not-defined-at-nkcreatesocket/5915 "2025-04-10T12:13:04Z")

</div>

We’re experiencing an issue with the" Socket.ConnectAsync " method. my create socket call is working but when i try to connect socket shows error in webgl build " ReferenceError: Pointer\_stringify is not defined at \_NKCr…

---

## [Best way to handle versioning?](https://forum.heroiclabs.com/t/best-way-to-handle-versioning/6143)

<div class="topic-metadata">

**Author:** [@KamilDev](https://forum.heroiclabs.com/u/KamilDev)\
**Replies:** 0\
**Last updated:** [April 9, 2025, 4:16am UTC](https://forum.heroiclabs.com/t/best-way-to-handle-versioning/6143 "2025-04-09T04:16:00Z")

</div>

Overall, what’s a good way to go about handling versioning? Lets take one example from my game. Equipment information, such as stats: Equipment template: { "id": "weapon\_iron\_sword", "type": "weapon", "baseStats…

---

## [Game crash in web](https://forum.heroiclabs.com/t/game-crash-in-web/6136)

<div class="topic-metadata">

**Author:** [@Zerof99](https://forum.heroiclabs.com/u/Zerof99)\
**Replies:** 0\
**Last updated:** [April 4, 2025, 1:43pm UTC](https://forum.heroiclabs.com/t/game-crash-in-web/6136 "2025-04-04T13:43:27Z")

</div>

Game crash when i test it in local server . I think the reason is client.AuthenticateDeviceAsync( In this code : if (session == null) { ScreenLog($“Authenticating with Device ID: {\_deviceId}”, true); try { sessio…

---

## [Connect to Nakama server with domain instead of Ip Address](https://forum.heroiclabs.com/t/connect-to-nakama-server-with-domain-instead-of-ip-address/6115)

<div class="topic-metadata">

**Author:** [@MahdiRashidi-Info](https://forum.heroiclabs.com/u/MahdiRashidi-Info)\
**Replies:** 3\
**Last updated:** [March 25, 2025, 2:15pm UTC](https://forum.heroiclabs.com/t/connect-to-nakama-server-with-domain-instead-of-ip-address/6115 "2025-03-25T14:15:59Z")

</div>

Hello, I am using the Nakama Unity SDK to connect to my server. Instead of specifying an IP address and port, I would like to connect directly using a domain name. However, I couldn’t find any relevant information in the…

---

## [Desplegar Nakama Con AWS ECS Fargate](https://forum.heroiclabs.com/t/desplegar-nakama-con-aws-ecs-fargate/6101)

<div class="topic-metadata">

**Author:** [@AlexGod05](https://forum.heroiclabs.com/u/AlexGod05)\
**Replies:** 0\
**Last updated:** [March 18, 2025, 8:35pm UTC](https://forum.heroiclabs.com/t/desplegar-nakama-con-aws-ecs-fargate/6101 "2025-03-18T20:35:39Z")

</div>

Muy Buenas tardes, Soy nuevo por acá. He estado intentando desplegar el servicio de Nakama a AWS con ECS Fargate, pero tengo un pequeño problema. El despliegue me funciona correctamente, pero después de un tiempo, alre…

---

## [Is rUDP scheme with Unity currently possible?](https://forum.heroiclabs.com/t/is-rudp-scheme-with-unity-currently-possible/2434)

<div class="topic-metadata">

**Author:** [@JeffWTD](https://forum.heroiclabs.com/u/JeffWTD)\
**Replies:** 3\
**Last updated:** [March 15, 2025, 9:30am UTC](https://forum.heroiclabs.com/t/is-rudp-scheme-with-unity-currently-possible/2434 "2025-03-15T09:30:03Z")

</div>

We’re currently looking at which networking platform to use to run our cross-platform realtime VR shooter game with. Nakama in general looks very promising, coming with a lot of the features we need right out of the box…

---

## [How To Use ParrelSync for testing nakama multiplayer in unity](https://forum.heroiclabs.com/t/how-to-use-parrelsync-for-testing-nakama-multiplayer-in-unity/6037)

<div class="topic-metadata">

**Author:** [@tgamer](https://forum.heroiclabs.com/u/tgamer)\
**Replies:** 0\
**Last updated:** [February 24, 2025, 1:56pm UTC](https://forum.heroiclabs.com/t/how-to-use-parrelsync-for-testing-nakama-multiplayer-in-unity/6037 "2025-02-24T13:56:54Z")

</div>

Things are working fine on my main project file in unity but for the clone project which I have created from the ParrelSync that is not working, in main project the clone project player is spawning but in the cloned proj…

---

## [Public http rpc](https://forum.heroiclabs.com/t/public-http-rpc/5968)

<div class="topic-metadata">

**Author:** [@surajTLabs](https://forum.heroiclabs.com/u/surajTLabs)\
**Replies:** 3\
**Last updated:** [January 29, 2025, 2:20pm UTC](https://forum.heroiclabs.com/t/public-http-rpc/5968 "2025-01-29T14:20:13Z")

</div>

I used server-to-server RPC calls from the client side also as unauthenticated public APIs. However, these calls require the httpKey in the request parameters. Is there a way to create a public HTTP RPC in Nakama that d…

---

## [App Encryption Documentation](https://forum.heroiclabs.com/t/app-encryption-documentation/5957)

<div class="topic-metadata">

**Author:** [@EarthAdam](https://forum.heroiclabs.com/u/EarthAdam)\
**Replies:** 1\
**Last updated:** [January 21, 2025, 11:40am UTC](https://forum.heroiclabs.com/t/app-encryption-documentation/5957 "2025-01-21T11:40:22Z")

</div>

I’m finally getting an app I’ve built using Nakama into Apple’s App Store through App Store Connect. One of the requirements the include is to document encryption that is used in the app. Is there thorough documentation …

---

## [WebGL socket error in Unity](https://forum.heroiclabs.com/t/webgl-socket-error-in-unity/5934)

<div class="topic-metadata">

**Author:** [@AllenPDX](https://forum.heroiclabs.com/u/AllenPDX)\
**Replies:** 2\
**Last updated:** [January 20, 2025, 10:08pm UTC](https://forum.heroiclabs.com/t/webgl-socket-error-in-unity/5934 "2025-01-20T22:08:19Z")

</div>

We are trying to launch a Unity WebGL client connecting to Nakama and running into a socket creation error (like other users on here). This isn’t our first time. We successfully launched a WebGL game in the past and thou…

---

## [WebGL error](https://forum.heroiclabs.com/t/webgl-error/3987)

<div class="topic-metadata">

**Author:** [@justin](https://forum.heroiclabs.com/u/justin)\
**Replies:** 2\
**Last updated:** [January 6, 2025, 5:10am UTC](https://forum.heroiclabs.com/t/webgl-error/3987 "2025-01-06T05:10:49Z")

</div>

getting this error Pointer\_stringify(ptrToSomeCString) when running in WebGL.

---

## [Nakama for 3D FPS Games: Lag Compensation, Prediction, Headless server mode](https://forum.heroiclabs.com/t/nakama-for-3d-fps-games-lag-compensation-prediction-headless-server-mode/5883)

<div class="topic-metadata">

**Author:** [@bigbyte](https://forum.heroiclabs.com/u/bigbyte)\
**Replies:** 1\
**Last updated:** [December 23, 2024, 12:29pm UTC](https://forum.heroiclabs.com/t/nakama-for-3d-fps-games-lag-compensation-prediction-headless-server-mode/5883 "2024-12-23T12:29:26Z")

</div>

Hi, Is Nakama suitable for creating a large 3D FPS game? I plan to use Unity3D as the client. Does Nakama provide built-in lag compensation and prediction? Is there support for syncing Mecanim animations? Additional…

[Next page](https://forum.heroiclabs.com/tag/sdk-unity/11.md?match_all_tags=true&page=1&tags%5B%5D=sdk-unity)
