Search Issue Tracker
Fix In Review
Votes
0
Found in
2.0.0
Issue ID
UUM-142524
Regression
No
Warnings due to obsolete Object.FindObjectsByType<T> usage and [SerializeReference] are logged when opening the Netcode for Entities setup scene
Steps to reproduce:
- Create a new 3D URP project
- Go to Window > Multiplayer > Multiplayer Center
- Set "Genre of your Game" to Adventure and "Number of Players..." to 2
- Change the "Netcode Solution" dropdown to "Netcode for Entities"
- Click Install Packages
- Once installed, click "Create and open scene with netcode setup"
- Observe the Console once opened
Actual results: Multiple warnings are logged in the Console, including obsolete API usage warnings and {{[SerializeReference]}} warnings about types missing the {{[Serializable]}} attribute
Expected results: No warnings are logged
Reproducible with versions: 6000.4.7f1, 6000.5.0b9
Not reproducible with versions: 6000.3.16f1 (methods not deprecated)
Can’t test with versions: 6000.6.0a5 (due to Multiplayer Center change and netcode setup scene not existing anymore)
Tested on (OS): macOS 26.5
Few of the Warnings:
{code:java}
The type Unity.Multiplayer.Center.Integrations Unity.Multiplayer.Center.Integrations.NecsOnboardingSection is being serialized by [SerializeReference], but is missing the [Serializable] attribute. To suppress this warning add [Serializable] or use [MakeSerializable].{code}
{code:java}
The type Unity.Multiplayer.Center.Integrations Unity.Multiplayer.Center.Integrations.MultiplayerPlayModeOnboardingSection is being serialized by [SerializeReference], but is missing the [Serializable] attribute. To suppress this warning add [Serializable] or use [MakeSerializable].{code}
{code:java}
The type Unity.Multiplayer.Center.Integrations Unity.Multiplayer.Center.Integrations.MultiplayerPlayModeOnboardingSection is being serialized by [SerializeReference], but is missing the [Serializable] attribute. To suppress this warning add [Serializable] or use [MakeSerializable].{code}
{code:java}
Assets/NetcodeForEntitiesSetup/Scripts/AutoDeactivateExtraComponents.cs(10,34): warning CS0618: 'Object.FindObjectsByType<T>(FindObjectsSortMode)' is obsolete: 'FindObjectsByType with FindObjectsSortMode parameter has been deprecated. Use FindObjectsByType<T>() or FindObjectsByType<T>(FindObjectsInactive) instead. InstanceID will be replaced in the future with EntityId and previous sort order cannot be maintained.'{code}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- AdaptiveLOD sample has missing prefabs and throws missing prefab errors when the AdaptiveLOD sample is imported and the AdaptiveLOD scene is opened
- Error "transform.position assign attempt for 'x' is not valid" is logged when Moving Game Object to View while a Scene is multi selected
- [Desktop] Plastic move detection mixes up identical files
- SVG Icon has tessellation issues in "Antialiased Arc Encodings", ok with "Basic Triangulation"
- "You may not pass null objects" and "Maximized serialized file backup not found" errors are thrown when maximizing and minimizing docked Multiplayer Play Mode window after Multiplayer Play Mode package is uninstalled
Add comment