Skip to content

Instantly share code, notes, and snippets.

@codemonkey-uk
Last active January 13, 2022 12:02
Show Gist options
  • Save codemonkey-uk/676791d89184718ef606 to your computer and use it in GitHub Desktop.
Save codemonkey-uk/676791d89184718ef606 to your computer and use it in GitHub Desktop.
Find source of "Inconsistent LOD naming (_LOD1 found but no _LOD0)." messages in a large Unity project.
#!/bin/bash
for i in $(seq 0 9)
do
let j=i+1
echo "Looking for LOD$j where no LOD$i exists."
diff <(find . | grep _LOD$i | grep -v meta$ | sed -e "s/LOD$i/LOD-/g" | sort) <(find . | grep _LOD$j | grep -v meta$ | sed -e "s/LOD$j/LOD-/g" | sort) | grep ">"
done
@paleogames
Copy link

Thank you for this useful script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment