Unity-Technologies / Unity-Technologies/com.unity.netcode.gameobjects

Implement a single player mode (fake host mode) for WebGL

Open
#2,361 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority:high stat:imported type:docs
Dominant language
C#
Stars
2.3k
Forks
461
Avg merge
3d 16h
Merged PRs (30d)
20

Description

Is your feature request related to a problem? Please describe.
I want to have the ability to implement single player mode for WebGL, but host mode is not available there

Describe the solution you'd like
I want to have a solution that allows me to create fake host mode out of the box, without internet connection to use it for singleplayer mode for all platforms, especially for webgl. It is needed to have 1 client/server implementation for singleplayer and multiplayer games.

Describe alternatives you've considered
To create a custom Transport without internet connection. Or maybe to make host mode for webgl that uses other driver inside current Unity Transport

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 reviewing the current Unity Transport and the WebGL host-mode limitation described in the issue. Compare the proposed fake host mode with a custom offline Transport, then define how one client/server implementation should work for both single-player and multiplayer without an internet connection. Done means an agreed design and working single-player host mode for WebGL and other platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
game-dev, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.