diff --git a/Assets/Fungus/Scripts/Editor/FlowchartMenuItems.cs b/Assets/Fungus/Scripts/Editor/FlowchartMenuItems.cs index 4627478d..acd4cc73 100644 --- a/Assets/Fungus/Scripts/Editor/FlowchartMenuItems.cs +++ b/Assets/Fungus/Scripts/Editor/FlowchartMenuItems.cs @@ -58,8 +58,8 @@ namespace Fungus.EditorUtils return null; } - GameObject go = PrefabUtility.InstantiatePrefab(prefab) as GameObject; - PrefabUtility.DisconnectPrefabInstance(go); + GameObject go = GameObject.Instantiate(prefab) as GameObject; + go.name = prefab.name; SceneView view = SceneView.lastActiveSceneView; if (view != null)