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;
GameObject go = GameObject.Instantiate(prefab) as GameObject;
PrefabUtility.DisconnectPrefabInstance(go);
go.name = prefab.name;
SceneView view = SceneView.lastActiveSceneView;
if (view != null)