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.
2 parents 9821330 + 41971d9 commit ddfc69eCopy full SHA for ddfc69e
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