Skip to content

Commit cf8e2d4

Browse files
committed
make sure the prefab gets imported into the right scene
1 parent 38818d3 commit cf8e2d4

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
@@ -132,7 +132,7 @@ public static GameObject[] CreateInstantiatedModelPrefab (GameObject [] unityGam
132132
}
133133

134134
// Instantiate the FBX file.
135-
Object unityObj = PrefabUtility.InstantiatePrefab (unityMainAsset);
135+
Object unityObj = PrefabUtility.InstantiatePrefab (unityMainAsset, gosToExport[i].scene);
136136
GameObject unityGO = unityObj as GameObject;
137137
if (!unityGO) {
138138
continue;

0 commit comments

Comments
 (0)