{"id":40975881,"url":"https://github.com/edgegap/netcode-sample-photon-fusion-2","last_synced_at":"2026-01-22T06:51:56.064Z","repository":{"id":230062058,"uuid":"764753146","full_name":"edgegap/netcode-sample-photon-fusion-2","owner":"edgegap","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-18T17:50:22.000Z","size":11439,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T18:38:09.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edgegap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-28T16:41:44.000Z","updated_at":"2025-06-14T21:50:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"04ba28b9-0aaf-4d64-b439-e2e13434078a","html_url":"https://github.com/edgegap/netcode-sample-photon-fusion-2","commit_stats":null,"previous_names":["edgegap/netcode-sample-photon-fusion-2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edgegap/netcode-sample-photon-fusion-2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgegap%2Fnetcode-sample-photon-fusion-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgegap%2Fnetcode-sample-photon-fusion-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgegap%2Fnetcode-sample-photon-fusion-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgegap%2Fnetcode-sample-photon-fusion-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgegap","download_url":"https://codeload.github.com/edgegap/netcode-sample-photon-fusion-2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgegap%2Fnetcode-sample-photon-fusion-2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28657365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-22T06:51:55.884Z","updated_at":"2026-01-22T06:51:56.044Z","avatar_url":"https://github.com/edgegap.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Photon Fusion 2 sample project\r\n\r\nThis guide will help you create a headless server on Edgegap for a Unity project using [Photon Fusion 2]( https://doc.photonengine.com/en-us/fusion/current/getting-started/fusion-intro) as its networking solution. You will need an account with both Edgegap and Photon for this.\r\n\r\nWe will use the sample project [Asteroid Simple (Host)](https://doc.photonengine.com/fusion/current/game-samples/fusion-asteroids) from Photon Fusion as an example.\r\n\r\n## Tutorial\r\n\r\nTo test this sample:\r\n\r\n- Clone the repo via the `git clone [URL]` command;\r\n- In the Unity editor, set these values with your own:\r\n    - In `PhotonAppSettings.asset`: `App Id Fusion`;\r\n- Make sure both scenes under `Assets/Asteroids-Host-Simple/Scenes` are included in the build settings.\r\n- Build \u0026 containerize your server then create a new app verison with the Edgegap plugin.\r\n- Add app version port mapping with name `gameport`, internal port `7777`, and protocol `UDP`.\r\n- Start a new deployment via the Edgegap dashboard/plugin.\r\n- Before launching the client:\r\n    - Enter the [Photon region](https://doc.photonengine.com/fusion/current/manual/connection-and-matchmaking/regions#available-regions) that corresponds to the server's deployed location in `PhotonAppSettings.asset`: `Fixed Region`. If left empty, it will by default use the Photon region with the lowest ping.\r\n- Launch the game in the editor:\r\n    - For room name, input your deployment's Host URL as shown in dashboard, in format `{request_id}.pr.edgegap.net`.\r\n    - Click on `Start Edgegap`.\r\n\r\nThe game will search for an available room with the specified name. After a short moment, the client should successfully connect to the server.\r\n\r\n## Troubleshooting\r\n\r\n- If the client is unable to connect to the specified room name with an error code of `Game Does Not Exist (32758)` but the server is up and running correctly, it's possible that the [region](https://doc.photonengine.com/fusion/current/manual/connection-and-matchmaking/regions#available-regions) used by the client does not correspond to the same region that the server is in. You can double-check the server's location using the deployment map on the Edgegap dashboard, and compare it to the region code set in `PhotonAppSettings.asset`: `Fixed Region`.\r\n\r\n\r\nYou can see the full documentation [here](https://docs.edgegap.com/docs/sample-projects/photon-fusion-2-on-edgegap).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgegap%2Fnetcode-sample-photon-fusion-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgegap%2Fnetcode-sample-photon-fusion-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgegap%2Fnetcode-sample-photon-fusion-2/lists"}