File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -110,12 +110,9 @@ private static List<GameObject> OnConvertInPlace ()
110
110
{
111
111
GameObject unityGO = unityObj as GameObject ;
112
112
113
- // configure name
114
- const string cloneSuffix = "(Clone)" ;
115
-
116
- if ( unityGO . name . EndsWith ( cloneSuffix , System . StringComparison . CurrentCulture ) ) {
117
- unityGO . name = unityGO . name . Remove ( cloneSuffix . Length - 1 ) ;
118
- }
113
+ // Set the name to be the name of the instantiated asset.
114
+ // This will get rid of the "(Clone)" if it's added
115
+ unityGO . name = unityMainAsset . name ;
119
116
120
117
// configure transform and maintain local pose
121
118
unityGO . transform . SetParent ( unityCommonAncestors [ i ] , false ) ;
Original file line number Diff line number Diff line change @@ -20,6 +20,21 @@ export PROJECT_PATH=~/Development/FbxExporters
20
20
export UNITY3D_PATH=/Applications/Unity\ 5.6.1f1/Unity.app/Contents/MacOS/Unity
21
21
export PACKAGE_NAME=FbxExporters
22
22
export PACKAGE_VERSION=0.0.3a
23
+ export FBXSDK_PACKAGE_PATH=/path/to/FbxSdk.unitypackage
23
24
24
- "${UNITY3D_PATH}" -batchmode -projectPath "${PROJECT_PATH}" -exportPackage Assets/FbxExporters ${PROJECT_PATH}/${PACKAGE_NAME}_${PACKAGE_VERSION}.unitypackage -quit
25
+ "${UNITY3D_PATH} -projectPath "${PROJECT_PATH}" -importPackage ${FBXSDK_PACKAGE_PATH} -quit
26
+ "${UNITY3D_PATH}" -batchmode -projectPath "${PROJECT_PATH}" -exportPackage Assets/FbxExporters Assets/FbxSdk ${PROJECT_PATH}/${PACKAGE_NAME}_${PACKAGE_VERSION}.unitypackage -quit
27
+ ```
28
+
29
+ ** On Windows**
30
+
31
+ ```
32
+ set PROJECT_PATH=/path/to/FbxExporters
33
+ set UNITY3D_PATH="C:/Program Files/Unity/Editor/Unity.exe"
34
+ set PACKAGE_NAME=FbxExporters
35
+ set PACKAGE_VERSION=0.0.3a
36
+ set FBXSDK_PACKAGE_PATH=/path/to/FbxSdk.unitypackage
37
+
38
+ %UNITY3D_PATH% -projectPath "%PROJECT_PATH%" -importPackage %FBXSDK_PACKAGE_PATH% -quit
39
+ %UNITY3D_PATH% -batchmode -projectPath "%PROJECT_PATH%" -exportPackage Assets/FbxExporters Assets/FbxSdk %PROJECT_PATH%/%PACKAGE_NAME%_%PACKAGE_VERSION%.unitypackage -quit
25
40
```
You can’t perform that action at this time.
0 commit comments