Skip to content

Nested networkobjects incorrectly spawned when parent networkobject is inactive in scene #919

@gregharding

Description

@gregharding

General
Unity version: 6.1.3f1
Fish-Networking version: 4.6.9 (latest)
Discord link: Discord message
Related to: #897

Description
After a server is started, hierarchies of nested networkobjects that have a parent networkobject gameobject which is inactive in the scene are spawned incorrectly. The parent scene networkobject does not spawn because its gameobject is inactive which is the expected behaviour.

Replication
Steps to reproduce the behavior:

  1. In the repro project open the 'test' scene.
  2. Observe in the scene that there is an inactive hierarchy of network objects under "canary holder".
  3. Press play, start a server with the FishNet UI.
  4. Check the console which logs spawned networkobjects after 'OnStartServer'.
  5. See that a nested networkobject "canary nested" has unexpectedly spawned, but the parent "canary holder"
    has not.

Expected behavior
None of the inactive scene networkobjects should spawn when the server starts because the root gameobject is inactive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingResolved Pending ReleaseIssue is resolved and will be available on the noted version.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions