Skip to content

Incorrect behaviour when NetworkHide followed by NetworkShow #1940

Closed
@ezoray

Description

@ezoray

Description

On a network object when a call made to NetworkHide is shortly followed by NetworkShow on the same object the object on the client is not despawned but is no long registered as a network object.

Reproduce Steps

Import and run the attached package.

Actual Outcome

On NetworkHide then NetworkShow the object on the client is not despawned on the client, and no longer has a network id.

Expected Outcome

Network object should be despawned and respawned.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • OS: macOS Big Sur
  • Unity Version: 2020 LTS
  • Netcode Version: 1.0.0-pre.8

Additional Context

In a game project the object is left and a new one respawned, in the test code attached the object is left and not respawned.
ObservedObjectVisibilityBug.unitypackage.zip
.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions