Search Issue Tracker
Fixed in 5.4.0
Votes
3
Found in
4.3.0f4
Issue ID
578690
Regression
No
Move Up a Component on a Prefab calls a fake warning dialog
To reproduce:
1. Create a new project
2. Create a game object
3. Drag it to the project view so it becomes a prefab
4. Click on the prefab in the hierarchy view
5. Right-Click on its component
6. Select "Move Up"
7. A warning message shows up: "This action will lose the prefab connection. Are you sure you wish to continue?"
8. Press "OK"
9. See that the prefab connection hasn't been lost.
Comments (3)
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
k0mbain
Oct 27, 2015 10:42
OK I've workarounded this issue.
I've disconnected prefabInstance from prefab by:
Object prefabParent = PrefabUtility.GetPrefabParent(parentGameObject);
PrefabUtility.DisconnectPrefabInstance(instanceGameObject);
Then used MoveComponentUp:
UnityEditorInternal.ComponentUtility.MoveComponentUp(childNetworkView)
and finally reattached it:
PrefabUtility.ReplacePrefab(instanceGameObject, prefabParent, ReplacePrefabOptions.ConnectToPrefab);
It doesn't show any dialog box.
k0mbain
Oct 27, 2015 10:30
It's very annoying when you write custom script to reorder components and you use it on >100 prefabs and you have to click >100 times "Continue" button
ocimum
Jul 15, 2015 09:44
In my case, moving a component up, the GameObject lost the connection to the prefab. The changes needed to be applied by pressing the button in the upper right corner in the inspector.