I am creating a game that uses modular corridors to transition between levels, but every time I want to change something nested in my prefabs Unity returns and error like this.
GameObject name Pillar defined twice in building template replace map!
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEditor.DockArea:OnGUI()
e.g.
- I have a segment of my corridor that contains multiple pillars, in fact several of my corridor modules use this pillar.
N.B.
-The pillar is at this point a prefab consisting of a mesh collider and a mesh render.
-
I have defined several corridors that use this pillar at various points, each corridor segment is also defined as a prefab.
-
I have decided that I would rather use a box collider on the pillar, because otherwise the player gets stuck when touching certain parts of the pillar. So I replace the mesh collider with a box collider, which breaks the prefab connection– but no problem, I’ll just click the apply button.
-
Now it all goes wrong, the pillar name turns blue indicating it is a prefab, but other occurrences of pillar are not updated, and pillar appears twice in the “replace map” causing the error, which I assume is a fancy internal thing.
Does anyone else experience this? Is there a work around?