Skip to content

Instantly share code, notes, and snippets.

@codemonkey-uk
Last active Apr 21, 2021
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@paleogames paleogames commented Apr 21, 2021

Thank you for this useful script.

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