Skip to content

Commit 41971d9

Browse files
committed
make sure GamObject gets saved to the same scene
1 parent 0067b34 commit 41971d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/FbxExporters/Editor/ConvertToModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static GameObject[] CreateInstantiatedModelPrefab (GameObject [] unityGam
133133
Object unityMainAsset = AssetDatabase.LoadMainAssetAtPath("Assets/" + relativePath);
134134

135135
if (unityMainAsset != null) {
136-
Object unityObj = PrefabUtility.InstantiatePrefab (unityMainAsset);
136+
Object unityObj = PrefabUtility.InstantiatePrefab (unityMainAsset, gosToExport[i].scene);
137137
GameObject unityGO = unityObj as GameObject;
138138
if (unityGO != null)
139139
{

0 commit comments

Comments
 (0)