quickstart-unity icon indicating copy to clipboard operation
quickstart-unity copied to clipboard

When proper Firestore Unity support?

Open maxgmer opened this issue 1 year ago • 2 comments

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.

maxgmer avatar Jan 01 '24 08:01 maxgmer

@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 avatar Jan 03 '24 18:01 MarkDuckworth

@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.

MarkDuckworth avatar Jan 08 '24 17:01 MarkDuckworth