File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ for UNITY_PROJECT_DIR in "${UNITY_PROJECTS[@]}"; do
4343 (( COUNT++ ))
4444 echo " Processing project $COUNT /$TOTAL_COUNT : $UNITY_PROJECT_DIR "
4545
46+ # run api update first
47+ " $UNITY_EDITOR_PATH " -batchmode -accept-apiupdate -quit -projectPath " $UNITY_PROJECT_DIR "
48+
4649 # Create Editor directory if it does not exist
4750 EDITOR_PATH=" $UNITY_PROJECT_DIR /Assets/Editor"
4851 if [ ! -d " $EDITOR_PATH " ]; then
@@ -53,7 +56,7 @@ for UNITY_PROJECT_DIR in "${UNITY_PROJECTS[@]}"; do
5356 cp " $PROJECTS_PATH /ForceReserializeAssets.cs" " $EDITOR_PATH /ForceReserializeAssets.cs"
5457
5558 # Run Unity in batch mode and execute ForceReserializeAssets.Reserialize method
56- " $UNITY_EDITOR_PATH " -batchmode -quit -accept-apiupdate - executeMethod ForceReserializeAssets.Reserialize -projectPath " $UNITY_PROJECT_DIR "
59+ " $UNITY_EDITOR_PATH " -batchmode -quit -executeMethod ForceReserializeAssets.Reserialize -projectPath " $UNITY_PROJECT_DIR "
5760
5861 # Remove the copied script and its meta file
5962 rm " $EDITOR_PATH /ForceReserializeAssets.cs"
You can’t perform that action at this time.
0 commit comments