Skip to content

NetworkShow/NetworkHide doesn't work for scene network objects #1953

Closed
@DovydasAL

Description

@DovydasAL

Description

When a scene object is a network object, showing, hiding, then reshowing that scene object throws an exception.

Reproduce Steps

  1. Create a scene with a network object.
  2. On server, set CheckObjectVisibility to false (don't believe this is even necessary)
  3. Boot a server into the scene
  4. Boot a client into the scene
  5. Show the scene object to the client (they should already be able to see it, but won't receive messages for it)
  6. Hide the scene object to the client - client should see the object despawned
  7. Show the scene object to the client - exception

Actual Outcome

Image shown below of the exception that is thrown

Expected Outcome

The scene object should appear to the client

Screenshots

image

Environment

  • OS: Windows 10
  • Unity Version: 2020.3.24f1
  • Netcode Version: 1.0.0-pre.7

Additional Context

Player.log

Metadata

Metadata

Labels

priority:highThis issue has high priority and we are focusing to resolve itstat:importedStatus - Issue is tracked internally at Unitytype:bugBug Report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions