Search Issue Tracker
Won't Fix
Under Consideration for 2023.2.X, 2023.3.X
Votes
12
Found in [Package]
1.0.17
Issue ID
N4EBUG-57
Regression
Yes
Installing Netcode for Entities package throws "The type or namespace name 'HierarchyPrefabType' does not exist.." error in the console
To reproduce:
1. Create a new project
2. Open Package Manager
3. Install Netcode for Entities package
4. Observe the console
Expected: no errors after installing
Actual: getting a "Library/PackageCache/com.unity.netcode@1.0.17/Editor/Authoring/HierarchyDrawers.cs(66,59): error CS0234: The type or namespace name 'HierarchyPrefabType' does not exist in the namespace 'Unity.Hierarchy' (are you missing an assembly reference?)" error
Reproducible in:
2023.2.0a18 2023.2.0b9 2023.3.0a5
Not reproducible in:
2023.1.13f1 2023.2.0a17
Package version:
1.0.17
Comments (2)
-
zxzFRANSzxz
Dec 03, 2023 05:59
Why is it still an issue if it's a one-line code fix?
-
WAYNGames
Nov 08, 2023 11:12
Can be worked around by making the package local and explicitly declaring the class oin line 66 :
isReplicated = item.PrefabType != Unity.Entities.Editor.Hierarchy.HierarchyPrefabType.None;
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note:
Netcode for Entities 1.0 is not compatible with 2023-based editors. Please update to 1.2 for a supported version.