Search Issue Tracker

Fixed

Fixed in netcode-1.7.0, 1.5.x

Votes

0

Found in [Package]

netcode-1.0.17

Issue ID

MTTB-288

Regression

No

Netcode predicted spawn classification failing in the Editor when Entities Hierarchy is active

Package: Unity Netcode

-

How to reproduce:
1. Open the attached project "PredictedSpawning.zip"
2. Open Window>Entities>Hierarchy
3. Dock the Entities Hierarchy window next to the Hierarchy window
4. Select the Hierarchy window
5. Enter Play Mode

Expected results: "Classification complete" is printed in the Console window
Actual results: "No predicted spawns found" is printed in the Console window

Reproducible with: 2022.3.11f1 (1.0.8, 1.0.17)

Reproducible on: Windows 11 22H2
Not reproducible on: No other environment tested

  1. Resolution Note (fix version 1.5.x):

    This issue was due to a subtle issue with the code. In one system, the Simulate tag is being queried in GhostPredictionSystemGroup, to ensure that it should be simulated. However, the query also ignores the enabled-state of all components to control the enabled state of another component. This also causes the enabled-state of Simulate to be ignored, and the prediction is not being properly simulated.

    To hopefully prevent future issues, we will add a warning when you ignore the enabled state in a query with Simulate while in the prediction loop. It is a valid use case in rare instances, so the warning can be disabled.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.