Skip to content

NetworkBehaviour.IsSpawned and Enter Play Mode Options: Reload Scene #2118

@wlwl2

Description

@wlwl2

Description

I'm already amazed with the progress on Scene handling.

See this for context (Boss Room issue): Unity-Technologies/com.unity.multiplayer.samples.coop#710

There seems to be a problem with Enter Play Mode Options: Reload Scene unchecked when trying to change scene.
Reload Domain unchecked was fine (that is usually a source of problems). For performance reasons (in Unity documentation as well) I usually have Enter Play Mode Options checked and the rest of the options unchecked.

I had narrowed down the issue to a NetworkBehaviour.IsSpawned condition in SceneLoaderWrapper.cs.

I'd also like a clarification: does IsSpawned simply mean that the object is spawned on the server?

I also had a look at the RFC 'NetworkSceneManager Robustness and Additive Scene Loading'. It's kind of related but not sure if it will help.

Reproduce Steps

These are already in the Boss Room issue (to prevent duplication).

Actual Outcome

With Enter Play Mode Options: Reload Scene unchecked, it does not allow you to get to the character select screen, unless you
enter Play mode again (after stopping play mode at the loading spinner where it got stuck).

Expected Outcome

You get to the CharSelect scene immediately (like you would with 'Enter Play Mode Options' unchecked).

Screenshots

Already in the Boss Room issue (to prevent duplication).

Environment

  • OS: Windows 10
  • Unity Version: 2021.3.2f1
  • Netcode Version: 1.0.0-pre.10 for Boss Room (happens on the latest 1.0.0 as well)
  • Netcode Commit: bc23a35 (latest one right now, has nothing to do with this commit in particular)

Additional Context

I think you can run these steps on the latest version of Boss Room.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature, request or improvementtype:feedbackIssue contains feedback and not specific bug or feature requests.type:supportQuestions or other support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions