@@ -19,8 +19,8 @@ You can install the package and integrations from the command-line using the fol
19
19
MacOS:
20
20
21
21
# Configure where Unity is installed
22
- if [ ! -f "${UNITY_EDITOR_PATH }" ]; then
23
- UNITY_EDITOR_PATH ="/Applications/Unity/Unity.app/Contents/MacOS/Unity"
22
+ if [ ! -f "${UNITY3D_PATH }" ]; then
23
+ UNITY3D_PATH ="/Applications/Unity/Unity.app/Contents/MacOS/Unity"
24
24
fi
25
25
26
26
# Configure where unitypackage is located
@@ -29,18 +29,18 @@ if [ ! -f "${PACKAGE_PATH}" ]; then
29
29
fi
30
30
31
31
# Configure which Unity project to install package
32
- if [ ! -f "${PROJECT_PATH}" ]; then
32
+ if [ ! -d "${PROJECT_PATH}" ]; then
33
33
PROJECT_PATH=~/Development/FbxExporters
34
34
fi
35
35
36
- if [ ! -f "${UNITY_EDITOR_PATH }" ]; then
36
+ if [ ! -f "${UNITY3D_PATH }" ]; then
37
37
echo "Unity is not installed"
38
38
else
39
39
# Install FbxExporters package
40
- "${UNITY_EDITOR_PATH }" -projectPath "${PROJECT_PATH}" -importPackage ${PACKAGE_PATH} -quit
40
+ "${UNITY3D_PATH }" -projectPath "${PROJECT_PATH}" -importPackage ${PACKAGE_PATH} -quit
41
41
42
42
# Install Maya2017 Integration
43
- "${UNITY_EDITOR_PATH }" -batchMode -projectPath "${PROJECT_PATH}" -executeMethod FbxExporters.Integrations.InstallMaya2017 -quit
43
+ "${UNITY3D_PATH }" -batchMode -projectPath "${PROJECT_PATH}" -executeMethod FbxExporters.Integrations.InstallMaya2017 -quit
44
44
45
45
# Configuring Maya2017 to auto-load integration
46
46
MAYA_PATH=/Applications/Autodesk/maya2017/Maya.app/Contents/bin/maya
49
49
echo "Maya2017 not installed"
50
50
else
51
51
# To configure without user interface change the last argument to 1 instead of 0
52
- "${MAYA_PATH}" -command "configureUnityOneClick \"${PROJECT_PATH}\" \"${UNITY_EDITOR_PATH }\" 0; scriptJob -idleEvent quit;"
52
+ "${MAYA_PATH}" -command "configureUnityOneClick \"${PROJECT_PATH}\" \"${UNITY3D_PATH }\" 0; scriptJob -idleEvent quit;"
53
53
fi
54
54
fi
55
55
0 commit comments