Skip to content

Commit 05e4f54

Browse files
committed
API 업데이트가 정상적으로 되도록 수정
1 parent 379c03e commit 05e4f54

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

update.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)