Change FlowchartMenuItem.SpawnPrefab to GameObject.Inst rather than P…
@ -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)