File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Path to Unity Editor executable
4- UNITY_EDITOR_PATH=" /Applications/Unity/Hub/Editor/6000.0.0f1 /Unity.app/Contents/MacOS/Unity"
4+ UNITY_EDITOR_PATH=" /Applications/Unity/Hub/Editor/6000.0.36f1 /Unity.app/Contents/MacOS/Unity"
55
66# Ask the user for the folder containing Unity projects
77read -p " Enter the path to the folder containing Unity projects: " PROJECTS_PATH
@@ -53,7 +53,7 @@ for UNITY_PROJECT_DIR in "${UNITY_PROJECTS[@]}"; do
5353 cp " $PROJECTS_PATH /ForceReserializeAssets.cs" " $EDITOR_PATH /ForceReserializeAssets.cs"
5454
5555 # Run Unity in batch mode and execute ForceReserializeAssets.Reserialize method
56- " $UNITY_EDITOR_PATH " -batchmode -quit -executeMethod ForceReserializeAssets.Reserialize -projectPath " $UNITY_PROJECT_DIR "
56+ " $UNITY_EDITOR_PATH " -batchmode -quit -executeMethod -accept-apiupdate ForceReserializeAssets.Reserialize -projectPath " $UNITY_PROJECT_DIR "
5757
5858 # Remove the copied script and its meta file
5959 rm " $EDITOR_PATH /ForceReserializeAssets.cs"
You can’t perform that action at this time.
0 commit comments