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 abcaf02 + 132a459 commit ce44e09Copy full SHA for ce44e09
Assets/FbxExporters/Editor/ConvertToModel.cs
@@ -112,7 +112,7 @@ private static List<GameObject> OnConvertInPlace (GameObject [] unityActiveGOs)
112
Object unityMainAsset = AssetDatabase.LoadMainAssetAtPath (fbxFileName);
113
114
if (unityMainAsset != null) {
115
- Object unityObj = PrefabUtility.InstantiateAttachedAsset (unityMainAsset);
+ Object unityObj = PrefabUtility.InstantiatePrefab (unityMainAsset);
116
GameObject unityGO = unityObj as GameObject;
117
if (unityGO != null)
118
{
0 commit comments