Unity-Technologies / Unity-Technologies/multiplayer-community-contributions

error CS0103: The name 'PhotonAppSettings' does not exist in the current context

Open
#147 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:support
Dominant language
C#
Stars
555
Forks
197
Avg merge
4d 12h
Merged PRs (30d)
1

Description

I am currently working to implement the Networking system from BossRoom into my own project so that I can learn how High-Level Networking is implemented in the new Unity Netcode for Gameobjects system.I have reached a point on the "MainMenu" scene that I'm stuck on.
After downloading the "Photon Realtime Transport for Netcode for GameObjects" Unity package, I am receiving the error: Library/PackageCache/com.community.netcode.transport.photon-realtime@da6250d3a9/Runtime/PhotonRealtimeTransport.cs(170,50): error CS0103: The name 'PhotonAppSettings' does not exist in the current context
This error is NOT being thrown in the BossRoom project and the scripts are identical between my project and the example project. HOW can I overcome this CS0103 error?

Screen Shot 2022-02-08 at 4 24 19 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading Runtime/PhotonRealtimeTransport.cs around line 170 and compare the package setup with the BossRoom project, focusing on how the MainMenu scene is configured. Done means the PhotonAppSettings reference resolves and the MainMenu scene no longer produces CS0103.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
game-dev, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.