Copyright © 2026 Unity Technologies
Steps to reproduce:
1. Create new Unity project using Universal 3D Template
2. Open Package Manager
3. Find and install Netcode for Entities package
4. In Hierarchy create Cube GameObject and select it
5. In Inspector window add Ghost Authoring Inspection Component
6. Then add Ghost Authoring Component
7. Observe Inspector window and Console window
Actual results: Inspector window breaks - “Add Component” button disappears, “InvalidOperationException” and “ArgumentException” errors are thrown in the Console window
Expected results: No errors are thrown in the Console window, "Add Component" butto doesn't disappear from the Inspector window
Reproducible with versions: 6000.0.81f1, 6000.3.21f1, 6000.5.7f1, 6000.6.0b7, 6000.7.0a4
Not reproducible with versions:
Can’t test with versions:
Tested on (OS): macOS Tahoe 26.5.2 (M1)
InvalidOperationException: The ghost Cube is not a valid prefab, all ghosts must be the top-level GameObject in a prefab. Ghost instances in scenes must be instances of such prefabs and changes should be made on the prefab asset, not the prefab instance
Unity.NetCode.GhostAuthoringComponentBaker.Bake (Unity.NetCode.GhostAuthoringComponent ghostAuthoring) (at ./Library/PackageCache/com.unity.netcode@339f69e91a25/Runtime/Authoring/Hybrid/GhostAuthoringComponentBaker.cs:154)
Unity.Entities.Baker`1[TAuthoringType].InvokeBake (Unity.Entities.IBaker+BakerExecutionState& state) (at ./Library/PackageCache/com.unity.entities@a9807d841046/Unity.Entities.Hybrid/Baking/Baker.cs:2264)
Unity.Entities.BakedEntityData.ApplyBakeInstructions (Unity.Entities.Baking.BakeDependencies& dependencies, Unity.Entities.Baking.IncrementalBakingContext+IncrementalBakeInstructions instructions, Unity.Entities.BlobAssetStore blobAssetStore, Unity.Entities.BakingSettings bakingSettings, Unity.Entities.Baking.GameObjectComponents& components) (at ./Library/PackageCache/com.unity.entities@a9807d841046/Unity.Entities.Hybrid/Baking/BakedEntityData.cs:847)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at ./Library/PackageCache/com.unity.entities@a9807d841046/Unity.Entities/Stubs/Unity/Debug.cs:17)
ArgumentException: A component with type:Unity.NetCode.GhostPrefabMetaData has not been added to the entity. Entities Journaling may be able to help determine more information. Please enable Entities Journaling for a more helpful error message. Unity.Entities.EntityComponentStore.AssertEntityHasComponent (Unity.Entities.Entity entity, Unity.Entities.ComponentType componentType) (at ./Library/PackageCache/com.unity.entities@a9807d841046/Unity.Entities/EntityComponentStoreDebug.cs:282) Unity.Entities.EntityComponentStore.AssertEntityHasComponent (Unity.Entities.Entity entity, Unity.Entities.TypeIndex componentTypeIndex) (at ./Library/PackageCache/com.unity.entities@a9807d841046/Unity.Entities/EntityComponentStoreDebug.cs:308) Unity.Entities.EntityDataAccess.GetComponentData[T] (Unity.Entities.Entity entity) (at ./Library/PackageCache/com.unity.entities@a9807d841046/Unity.Entities/EntityDataAccess.cs:1290) Unity.Entities.EntityManager.GetComponentData[T] (Unity.Entities.Entity entity) (at ./Library/PackageCache/com.unity.entities@a9807d841046/Unity.Entities/EntityManager.cs:420) Unity.NetCode.Editor.EntityPrefabComponentsPreview.BakeEntireNetcodePrefab (Unity.NetCode.BaseGhostSettings ghostAuthoring, Unity.NetCode.GhostAuthoringInspectionComponent inspectionComponent, System.Collections.Generic.Dictionary`2[TKey,TValue] cachedBakedResults) (at ./Library/PackageCache/com.unity.netcode@339f69e91a25/Editor/Authoring/EntityPrefabComponentsPreview.cs:68) Unity.NetCode.Editor.GhostAuthoringInspectionComponentEditor.BakeNetCodePrefab () (at ./Library/PackageCache/com.unity.netcode@339f69e91a25/Editor/Authoring/GhostAuthoringInspectionComponentEditor.cs:141) Unity.NetCode.Editor.GhostAuthoringInspectionComponentEditor.TryGetBakedResultAssociatedWithAuthoringGameObject (Unity.NetCode.Editor.BakedResult& result) (at ./Library/PackageCache/com.unity.netcode@339f69e91a25/Editor/Authoring/GhostAuthoringInspectionComponentEditor.cs:118)
Issues you vote on will appear here