We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0067b34 commit 41971d9Copy full SHA for 41971d9
Assets/FbxExporters/Editor/ConvertToModel.cs
@@ -133,7 +133,7 @@ public static GameObject[] CreateInstantiatedModelPrefab (GameObject [] unityGam
133
Object unityMainAsset = AssetDatabase.LoadMainAssetAtPath("Assets/" + relativePath);
134
135
if (unityMainAsset != null) {
136
- Object unityObj = PrefabUtility.InstantiatePrefab (unityMainAsset);
+ Object unityObj = PrefabUtility.InstantiatePrefab (unityMainAsset, gosToExport[i].scene);
137
GameObject unityGO = unityObj as GameObject;
138
if (unityGO != null)
139
{
0 commit comments