Skip to content
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

Add VR demo #751

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add VR demo #751

wants to merge 2 commits into from

Conversation

wanlwanl
Copy link
Member

Ken requests to add the demo like it

@wanlwanl wanlwanl mentioned this pull request May 30, 2024
@@ -0,0 +1,34 @@
# Unity Multiplayer VR Sample

his sample show off how to use [Azure Realtime Transport for Unity](https://github.com/wanlwanl/multiplayer-community-contributions/tree/wanl/transport/Transports/com.community.netcode.transport.azure-realtime) in VR game.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
his sample show off how to use [Azure Realtime Transport for Unity](https://github.com/wanlwanl/multiplayer-community-contributions/tree/wanl/transport/Transports/com.community.netcode.transport.azure-realtime) in VR game.
This sample shows how to use [Azure Realtime Transport for Unity](https://github.com/wanlwanl/multiplayer-community-contributions/tree/wanl/transport/Transports/com.community.netcode.transport.azure-realtime) in VR game.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link is not from the azure repo, could we move the transport code into this repo?


his sample show off how to use [Azure Realtime Transport for Unity](https://github.com/wanlwanl/multiplayer-community-contributions/tree/wanl/transport/Transports/com.community.netcode.transport.azure-realtime) in VR game.

> This project is based on Meta Oculus's [Unity-UltimateGloveBall](https://github.com/oculus-samples/Unity-UltimateGloveBall) sample, please try to setup and run it first.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stick to one commit incase some breaking change happens to the referenced repo?


### B. Setup Transport

1. Download latest `azure-webpubsub-transport.unitypackage`package from `[Releases](https://github.com/albertxavier100/azure-web-pubsub-transport/releases)`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This release link is from a personal repo, shall we move the code and release into this repo?

6. Enter negotiate endpoint. For example, `https://localhost:7172/negotiate` if you use the builtin developing negotiate server.
7. Use the `StartServer`, `StartHost` and `StartClient` functions as usually to host a game and have clients connect to it.

> At this point, you should be able to exchanges data between unity server and client.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> At this point, you should be able to exchanges data between unity server and client.
> At this point, you should be able to exchange data between unity server and client.

4. Set the `Network Transport` field on the NetworkManager to the `AzureWebPubSubTransport`.
5. Enter a room name into the `Room Name` field of the `AzureWebPubSubTransport`.
6. Enter negotiate endpoint. For example, `https://localhost:7172/negotiate` if you use the builtin developing negotiate server.
7. Use the `StartServer`, `StartHost` and `StartClient` functions as usually to host a game and have clients connect to it.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also add some screenshots?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants