Search Issue Tracker
Fixed
Fixed in 1.2.0
Votes
0
Found in [Package]
1.2.0
Issue ID
N4EBUG-42
Regression
Yes
GhostAuthoringInspectionComponent is invalid on additional entities created from children
Context: [https://unity.slack.com/archives/C0214P2C947/p1696623271668409]
With thanks to [~philippe.stamand] for the find!
*Repro*
# Create a ghost with children.
# Have those children spawn additional entities.
# Have a code-based default variant with SendDataForChildEntity = false.
# Observe how the additional children default to replicating.
# Also observe how attempting to manually fix the children results in the exception:
{code:java}
GetOrAddPrefabOverride:
if (gameObject.GetInstanceID() != entityGuid.OriginatingId)
{
var didMatchChild = TryGetFirstMatchingGameObjectInChildren(gameObject.transform, entityGuid, out var childGameObject);
var error = didMatchChild ? $"It matches a child instead ({childGameObject}). Overrides MUST be added to the Inspection component of the GameObject you are modifying!" : "Unknown GameObject.";
throw new ArgumentException($"Attempting to GetOrAddPrefabOverride for entityGuid '{entityGuid}' to '{this}', but entityGuid does not match our gameObject! {error}");
}{code}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ScrollView speed is slower when entering Play mode
- UI Builder elements disappear and "Semantic - Unknown template name" error appears when changes to "Template" parameter are saved
- Renderers outside Light Probe hull use incorrect Ambient Probe values when "Renderer Light Probe Selection" is set to "Use Ambient Probe" and "Light Probes" on Mesh is set to "Blend Probes"
- ArgumentNullException error occurs when selecting a Camera in the Hierarchy with the Scene view open
- Clicking 'Open Editor Log' through the Console fails to open redirected Logs when relative Log files exist outside of the Project root
Add comment