-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET/C# Binding #237
Comments
Hi! Thanks for your interest in adding WebTransport support for Unity and exploring the project. I’m not a Windows or C# expert myself, so I don’t have detailed guidance on setting everything up in that environment. However, I can share some key insights and potential steps:
This is definitely a challenging task, but it’s achievable with some groundwork on async integration. Good luck, and feel free to reach out if you have further questions along the way! |
I still have questions, when I compile the webTransport as native library, will it automatically include quinn? |
Yes, in general, when you compile |
Ok got it, in addition there is this https://github.com/quinn-rs/quinn-ffi, what do you think? |
I was not aware about that, but it is probably a good start point and try to achieve the same with |
Check FlyByWirelss.WebTransport out. It is for server, but you may get some ideas on how to build a WebTransport client with |
I will take a look at it, thanks, give me time |
@wegylexy Unity doesn't support Latest .NET API right, how problematic if they are separate instance do you think? |
@StinkySteak If it's a Windows desktop game, you could implement the WebTransport client in a separate background service and use named pipe(s) (e.g. 1 named pipe client per WT bi-directional stream with 1 named pipe server per WT session) between the local background service and the game. Then you wouldn't be limited to the Unity API. |
I only intend to use the WebTransport server in dedicated server (linux), then the client can connect through javascript |
In this case, you don't have to use a Unity server, thus no need for .NET binding or get limited to .NET Standard 2.1 only. What do you really want to achieve, regardless of the technology behind the scenes? |
What we're limited is the Unity Mono API, where we don't have access to QUIC API. If the unity can execute a background process, I guess it can be fine, if the control is easy |
If you use JavaScript, you don't use Mono API, just use JavaScript WebTransport in your web client. |
The issue I'm unable to solve, is the server (unity instance) need to have the ability of to accept a webTransport connection |
I mean, if you want to take advantage of WebTransport or any custom networking, don't use Unity Multiplay Hosting. |
I'm getting a little lost here, I'm not talking about Unity Multiplay Hosting anywhere. Lets say we have a Unity multiplayer game, using mirror, and we want to utilize QUIC for webBrowser which is webTransport. However Unity is a mono and do not have an access to your API you developed for .NET 6. |
Hi, I want to create a WebTransport support for Unity, I've tried quiche, but it seems they dont have built-in for WT Yet. I've across this, and wanted to create the bindings for .NET first. Sadly I dont understand elixir so much, so it will take some time to learn too. Also, My env is windows.
My questions are:
The text was updated successfully, but these errors were encountered: