firebase / quickstart-unity

Firebase Quickstart Samples for Unity
https://firebase.google.com/games
Apache License 2.0
819 stars 424 forks source link

When proper Firestore Unity support? #1363

Open maxgmer opened 6 months ago

maxgmer commented 6 months ago

It's 2024, but it's still not possible to create multiplayer games with Unity.

Firestore still doesn't have Admin Unity SDK to use in Unity servers (most multiplayer games use Unity with "Dedicated Server" platform selected on their server side).

You already have a C# SDK (https://cloud.google.com/firestore/docs/create-database-server-client-library), what's left is to just port a couple of pieces, test it and it's done, why not do it?

P.S. If I'm wrong and it's possible to use https://cloud.google.com/firestore/docs/create-database-server-client-library in Unity, please guide me through how to fix this exception: Grpc.Core.RpcException: Status(StatusCode="Internal", Detail="Bad gRPC response. Response protocol downgraded to HTTP/1.1.") (happens after query.GetSnapshotAsync()). Or if there is another Firestore Admin SDK for Unity, please give me the link.

MarkDuckworth commented 6 months ago

@maxgmer, thanks for the feature request. I've forwarded your question about the C# Firestore SDK to a dev on that team. Let's see if they have any ideas about using the C# Firestore SDK for Unity multiplayer

MarkDuckworth commented 5 months ago

@maxgmer, can you confirm you're asking about using Firestore with Unity Game Server hosting?

Also, it's unclear what is leading to the RpcException you are seeing. Consider testing with the REST transport to see if you still experience this issue? If so, you may want to post this error on the repo for the specific Firestore SDK you are using.