File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,11 @@ static void OnContextItem (MenuCommand command)
71
71
/// <summary>
72
72
/// Create an instantiated model prefab from an game object hierarchy.
73
73
/// </summary>
74
- /// <returns>list of instanced model prefabs</returns>
75
- /// <param name="unityGameObjectsToConvert">Unity game objects to convert to model prefab instances</param>
76
- /// <param name="keepBackup">If set to <c>true</c> keep backup.</param>
77
- public static GameObject [ ] CreateInstantiatedModelPrefab ( GameObject [ ] unityGameObjectsToConvert , string path = null , bool keepBackup = true )
74
+ /// <returns>list of instanced Model Prefabs</returns>
75
+ /// <param name="unityGameObjectsToConvert">Unity game objects to convert to Model Prefab instances</param>
76
+ /// <param name="path">Path to save Model Prefab</param>
77
+ /// <param name="keepOriginal">If set to <c>true</c> keep original gameobject hierarchy.</param>
78
+ public static GameObject [ ] CreateInstantiatedModelPrefab ( GameObject [ ] unityGameObjectsToConvert , string path = null , bool keepOriginal = true )
78
79
{
79
80
List < GameObject > result = new List < GameObject > ( ) ;
80
81
@@ -134,7 +135,7 @@ public static GameObject[] CreateInstantiatedModelPrefab (GameObject [] unityGam
134
135
135
136
136
137
// remove (now redundant) gameobject
137
- if ( ! keepBackup ) {
138
+ if ( ! keepOriginal ) {
138
139
Object . DestroyImmediate ( unityGameObjectsToConvert [ i ] ) ;
139
140
}
140
141
else
You can’t perform that action at this time.
0 commit comments